Browse Source

fix: list index

main
Inhji Y. 7 months ago
parent
commit
512781730f
  1. 19
      lib/mirage_web/live/list_live/show.html.leex

19
lib/mirage_web/live/list_live/show.html.leex

@ -11,22 +11,13 @@
return_to: Routes.list_show_path(@socket, :show, @list) %>
<% end %>
<section class="bg-content width-full">
<section>
<%= for note <- @list.notes do %>
<article class="note single" id="note-<%= note.id %>">
<%= live_patch to: Routes.note_show_path(MirageWeb.Endpoint, :show, note) do %>
<header class="width-full">
<h2 class="title">
<%= note.title %>
</h2>
<p class="tags">
<%= for topic <- note.topics do %>
<span class="tag"><%= topic.text %></span>
<% end %>
</p>
</header>
<% end %>
<article class="note single" id="note-<%= note.id %>">
<h2 class="title">
<%= live_patch note.title, to: Routes.note_show_path(MirageWeb.Endpoint, :show, note) %>
</h2>
</article>
<% end %>
</section>

Loading…
Cancel
Save