From fbe2d3c5de116f6a22131cb2f5c24a84b0599ffc Mon Sep 17 00:00:00 2001 From: Inhji Date: Tue, 4 Jul 2023 06:57:13 +0200 Subject: [PATCH] move note metadata to footer --- .../controllers/page_html/note.html.heex | 58 +++++++++---------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/lib/chiya_web/controllers/page_html/note.html.heex b/lib/chiya_web/controllers/page_html/note.html.heex index c8de6d8..0a3664c 100644 --- a/lib/chiya_web/controllers/page_html/note.html.heex +++ b/lib/chiya_web/controllers/page_html/note.html.heex @@ -3,40 +3,40 @@

<%= @note.name %>

-

- <%= if @note.published_at do %> - Published - <% else %> - Unpublished - <% end %> - - <.dot /> - Last Updated - - <%= if not Enum.empty?(@note.tags) do %> - <.dot /> - Tags - - <%= for tag <- @note.tags do %> - - <%= tag.name %> - - <% end %> - - <% end %> - <%= if @current_user do %> - <.dot /> - Show in Admin - <% end %> -

-
+
<%= Markdown.render(@note.content) |> raw %>
-