Merge pull request 'devel' (#320) from devel into main

Reviewed-on: #320
This commit is contained in:
inhji 2023-09-12 09:16:47 +02:00
commit 82483d14c5

View file

@ -1,9 +1,25 @@
<.header>
Apply Tag <%= @tag.id %>
<:subtitle>This is a tag record from your database.</:subtitle>
Apply Tag <%= @tag.name %>
<:subtitle>These notes will get the tag.</:subtitle>
<:actions>
<.link href={~p"/admin/tags/#{@tag}/apply"}>
<.button>Apply tag</.button>
</.link>
</:actions>
</.header>
<section>
<%= for note <- @notes do %>
<article class="bg-slate-100 dark:bg-slate-800 text-slate-900 dark:text-slate-100 p-3 rounded">
<header>
<h2 class="text-xl leading-normal">
<a href={"/admin/notes/#{note.id}"}><%= note.name %></a>
</h2>
</header>
<footer class="flex gap-3 text-sm ">
<span>Updated <%= from_now(note.updated_at) %></span>
<span>Published <%= from_now(note.published_at) %></span>
</footer>
</article>
<% end %>
</section>