devel #320
1 changed files with 18 additions and 2 deletions
|
@ -1,9 +1,25 @@
|
||||||
<.header>
|
<.header>
|
||||||
Apply Tag <%= @tag.id %>
|
Apply Tag <%= @tag.name %>
|
||||||
<:subtitle>This is a tag record from your database.</:subtitle>
|
<:subtitle>These notes will get the tag.</:subtitle>
|
||||||
<:actions>
|
<:actions>
|
||||||
<.link href={~p"/admin/tags/#{@tag}/apply"}>
|
<.link href={~p"/admin/tags/#{@tag}/apply"}>
|
||||||
<.button>Apply tag</.button>
|
<.button>Apply tag</.button>
|
||||||
</.link>
|
</.link>
|
||||||
</:actions>
|
</:actions>
|
||||||
</.header>
|
</.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>
|
Loading…
Reference in a new issue