notes linking here #306
1 changed files with 13 additions and 13 deletions
|
@ -15,17 +15,6 @@
|
||||||
<%= Markdown.render(@note.content) |> raw %>
|
<%= Markdown.render(@note.content) |> raw %>
|
||||||
</section>
|
</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 %>
|
<%= if String.length(@note.url || "") > 0 do %>
|
||||||
<section class="text-center">
|
<section class="text-center">
|
||||||
<.icon name="hero-link" /> <a href={@note.url}><%= @note.url %></a>
|
<.icon name="hero-link" /> <a href={@note.url}><%= @note.url %></a>
|
||||||
|
@ -60,9 +49,9 @@
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<aside class="prose max-w-none">
|
<aside class="prose max-w-none">
|
||||||
<h3>Outline</h3>
|
|
||||||
|
|
||||||
<%= if has_outline?(@note) do %>
|
<%= if has_outline?(@note) do %>
|
||||||
|
<h3>Outline</h3>
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
<%= raw(render_outline(@note)) %>
|
<%= raw(render_outline(@note)) %>
|
||||||
</section>
|
</section>
|
||||||
|
@ -89,6 +78,17 @@
|
||||||
</ul>
|
</ul>
|
||||||
</section>
|
</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>
|
<h3>Admin</h3>
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
|
|
Loading…
Reference in a new issue