show last edit on note page
This commit is contained in:
parent
ecbaa22d06
commit
f55dc9af0a
2 changed files with 5 additions and 3 deletions
|
@ -27,7 +27,7 @@
|
||||||
<%= for note <- @channel.notes do %>
|
<%= for note <- @channel.notes do %>
|
||||||
<a
|
<a
|
||||||
href={~p"/#{note.slug}"}
|
href={~p"/#{note.slug}"}
|
||||||
class="rounded-lg -mx-2 -my-0.5 px-2 py-0.5 hover:bg-theme-primary/30 transition"
|
class="rounded-lg -mx-2 -my-0.5 px-2 py-0.5 hover:bg-theme-primary/10 transition"
|
||||||
>
|
>
|
||||||
<span class="text-theme-heading text-lg font-semibold leading-8">
|
<span class="text-theme-heading text-lg font-semibold leading-8">
|
||||||
<%= note.name %>
|
<%= note.name %>
|
||||||
|
|
|
@ -3,8 +3,10 @@
|
||||||
<h1 class="mt-16 text-3xl font-semibold leading-8 text-theme-heading font-serif">
|
<h1 class="mt-16 text-3xl font-semibold leading-8 text-theme-heading font-serif">
|
||||||
<%= @note.name %>
|
<%= @note.name %>
|
||||||
</h1>
|
</h1>
|
||||||
<p class="mt-2 text-sm leading-6 text-theme-base font-semibold">
|
<p class="mt-2 text-sm leading-6 text-theme-base">
|
||||||
<%= pretty_date(@note.published_at) %>
|
<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>
|
||||||
</p>
|
</p>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue