add link slug to copy

This commit is contained in:
Inhji 2023-04-09 18:36:00 +02:00
parent 01ad9815f8
commit a78e25da4a

View file

@ -12,7 +12,9 @@ defmodule ChiyaWeb.NoteShowLive do
~H""" ~H"""
<.header> <.header>
<%= @note.name %> <%= @note.name %>
<:subtitle><%= @note.slug %></:subtitle> <:subtitle>
<pre class="p-1 bg-gray-100 rounded select-all">[[<%= @note.slug %>]]</pre>
</:subtitle>
<:actions> <:actions>
<.link href={~p"/admin/notes/#{@note}/edit"}> <.link href={~p"/admin/notes/#{@note}/edit"}>
<.button>Edit</.button> <.button>Edit</.button>