Browse Source

fix: show backlinks unless they are empty

main
Inhji Y. 8 months ago
parent
commit
4242ad2742
  1. 2
      lib/mirage_web/templates/note/show.html.eex

2
lib/mirage_web/templates/note/show.html.eex

@ -16,6 +16,7 @@
</article>
</div>
<%= if not Enum.empty(@note.backlinks) do %>
<section class="backlinks">
<h4>Backlinks</h4>
@ -23,6 +24,7 @@
<%= link backlink.title, to: Routes.note_path(@conn, :show, backlink), class: "backlink bg-content" %>
<% end %>
</section>
<% end %>
<%= if @current_user do %>
<div class="buttons">

Loading…
Cancel
Save