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

12 lines
224 B
Text

<div>
<h1>Заметки</h1>
<%= for note <- @notes do %>
<div>
<.link href={~p"/notes/#{note}"}>
<h2><%= note.title %></h2>
</.link>
<%= note.inserted_at %>
</div>
<% end %>
</div>