add edit link to public notes

This commit is contained in:
Inhji 2023-04-09 13:43:54 +02:00
parent ce7cb1a21f
commit cb0c9d7a83

View file

@ -7,6 +7,10 @@
<span>Published</span> <time class="text-theme-primary font-semibold"><%= pretty_date(@note.published_at) %></time>
<span>·</span>
<span>Last Updated</span> <time class="text-theme-primary font-semibold"><%= pretty_date(@note.updated_at) %></time>
<%= if @current_user do %>
<span>·</span>
<a href={~p"/admin/notes/#{@note}/edit"} class="text-theme-primary font-semibold">Edit</a>
<% end %>
</p>
</header>