Browse Source

chore: clean up topic show

main
Inhji Y. 7 months ago
parent
commit
f1cfa83b71
  1. 25
      lib/mirage_web/templates/topic/show.html.eex

25
lib/mirage_web/templates/topic/show.html.eex

@ -1,35 +1,18 @@
<header class="hero">
<h1>Topic <%= @topic.text %></h1>
<h1>Topic <em><%= @topic.text %></em></h1>
<p><%= Enum.count(@topic.notes) %> Notes</p>
</header>
<section>
<%= for note <- @topic.notes do %>
<article class="note" id="note-<%= note.id %>">
<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>
</header>
<% end %>
<!--
<section>
<div class="content html width-full bg-content">
<%= raw note.content_html %>
</div>
</section>
<footer class="width-full bg-content">
<time datetime="<%= note.inserted_at %>"><%= Timex.from_now(note.inserted_at) %></time>
<span class="tags">
<%= for topic <- note.topics do %>
<span class="tag"><%= topic.text %></span>
<% end %>
</span>
</footer>
-->
<% end %>
</article>
<% end %>
</section>

Loading…
Cancel
Save