Browse Source

fix: remove obsolete note_meta partial

main
Inhji Y. 8 months ago
parent
commit
cdbccb135c
  1. 5
      lib/mirage_web/templates/note/_note_meta.html.eex
  2. 6
      lib/mirage_web/templates/note/index.html.eex

5
lib/mirage_web/templates/note/_note_meta.html.eex

@ -1,5 +0,0 @@
<aside>
<%= link to: Routes.note_path(@conn, :show, @note) do %>
<time datetime="<%= @note.inserted_at %>"><%= @note.inserted_at %></time>
<% end %>
</aside>

6
lib/mirage_web/templates/note/index.html.eex

@ -11,7 +11,11 @@
<%= Earmark.as_html!(note.content) |> raw %>
</div>
<%= render "_note_meta.html", conn: @conn, note: note %>
<aside>
<%= link to: Routes.note_path(@conn, :show, note) do %>
<time datetime="<%= note.inserted_at %>"><%= note.inserted_at %></time>
<% end %>
</aside>
</article>
<% end %>
</section>

Loading…
Cancel
Save