add edit link to public notes
This commit is contained in:
parent
ce7cb1a21f
commit
cb0c9d7a83
1 changed files with 4 additions and 0 deletions
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in a new issue