comfycamp/lib/comfycamp_web/controllers/notes_editor_html/index.html.heex

18 lines
307 B
Text
Raw Normal View History

2024-07-29 18:07:44 +05:00
<div>
<.link href={~p"/admin/notes/new"}>
Создать заметку
</.link>
<ul>
<%= for note <- @notes do %>
<li>
<.link href={~p"/admin/notes/#{note}"}>
<%= note.title %>
</.link>
<%= note.updated_at %>
</li>
<% end %>
</ul>
</div>