From a2bc863887e882f9a61fe804995a201f9ee9df63 Mon Sep 17 00:00:00 2001 From: inhji Date: Fri, 7 Jul 2023 14:30:57 +0200 Subject: [PATCH] =?UTF-8?q?=E2=80=9Elib/chiya=5Fweb/controllers/page=5Fhtm?= =?UTF-8?q?l/note.html.heex=E2=80=9C=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controllers/page_html/note.html.heex | 105 +++++++++--------- 1 file changed, 52 insertions(+), 53 deletions(-) diff --git a/lib/chiya_web/controllers/page_html/note.html.heex b/lib/chiya_web/controllers/page_html/note.html.heex index 390b682..a6dfbaa 100644 --- a/lib/chiya_web/controllers/page_html/note.html.heex +++ b/lib/chiya_web/controllers/page_html/note.html.heex @@ -1,59 +1,58 @@ -
-
- <.header class_title="p-name"> - <:title><%= @note.name %> - +
+ <.header class_title="max-w-2xl mx-auto | p-name"> + <:title><%= @note.name %> + -
- <%= Markdown.render(@note.content) |> raw %> -
+
+ <%= Markdown.render(@note.content) |> raw %> +
-
- <%= if @note.published_at do %> - Published - <% else %> - Unpublished - <% end %> - +
+ <%= if @note.published_at do %> + Published + <% else %> + Unpublished + <% end %> + + <.dot /> + Last Updated + + <%= if not Enum.empty?(@note.tags) do %> <.dot /> - Last Updated - - <%= if not Enum.empty?(@note.tags) do %> - <.dot /> - Tags - <.tags note={@note} /> - <% end %> - <%= if @current_user do %> - <.dot /> - Show in Admin - <% end %> + Tags + <.tags note={@note} /> + <% end %> + <%= if @current_user do %> + <.dot /> + Show in Admin + <% end %> - - -
+ + +
-
- <%= if !Enum.empty?(@note.images) do %> - <.line /> +
+ <%= if !Enum.empty?(@note.images) do %> + <.line /> + +
+ <%= for image <- @note.images do %> + + + + <% end %> +
+ <% end %> +
+
-
- <%= for image <- @note.images do %> - - - - <% end %> -
- <% end %> -
- -