Merge pull request 'notes linking here' (#306) from devel into main
Reviewed-on: #306
This commit is contained in:
commit
4813936ff4
1 changed files with 13 additions and 13 deletions
|
@ -15,17 +15,6 @@
|
|||
<%= Markdown.render(@note.content) |> raw %>
|
||||
</section>
|
||||
|
||||
<%= if not Enum.empty?(@note.links_to) do %>
|
||||
<section class="prose ">
|
||||
Notes linking here:
|
||||
<ul>
|
||||
<%= for link <- @note.links_to do %>
|
||||
<li><a href={~p"/note/#{link.slug}"}><%= link.name %></a></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
</section>
|
||||
<% end %>
|
||||
|
||||
<%= if String.length(@note.url || "") > 0 do %>
|
||||
<section class="text-center">
|
||||
<.icon name="hero-link" /> <a href={@note.url}><%= @note.url %></a>
|
||||
|
@ -60,9 +49,9 @@
|
|||
</section>
|
||||
|
||||
<aside class="prose max-w-none">
|
||||
<h3>Outline</h3>
|
||||
|
||||
<%= if has_outline?(@note) do %>
|
||||
<h3>Outline</h3>
|
||||
|
||||
<section>
|
||||
<%= raw(render_outline(@note)) %>
|
||||
</section>
|
||||
|
@ -89,6 +78,17 @@
|
|||
</ul>
|
||||
</section>
|
||||
|
||||
<%= if not Enum.empty?(@note.links_to) do %>
|
||||
<h3>Notes linking here</h3>
|
||||
<section>
|
||||
<ul>
|
||||
<%= for link <- @note.links_to do %>
|
||||
<li><a href={~p"/note/#{link.slug}"}><%= link.name %></a></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
</section>
|
||||
<% end %>
|
||||
|
||||
<h3>Admin</h3>
|
||||
|
||||
<section>
|
||||
|
|
Loading…
Reference in a new issue