diff --git a/lib/chiya_web/controllers/page_html/note.html.heex b/lib/chiya_web/controllers/page_html/note.html.heex index 792553f..390b682 100644 --- a/lib/chiya_web/controllers/page_html/note.html.heex +++ b/lib/chiya_web/controllers/page_html/note.html.heex @@ -1,57 +1,59 @@ -
- <.header class_title="p-name"> - <:title><%= @note.name %> - +
+
+ <.header class_title="p-name"> + <:title><%= @note.name %> + -
- <%= Markdown.render(@note.content) |> raw %> -
+
+ <%= Markdown.render(@note.content) |> raw %> +
-
- <%= if @note.published_at do %> - Published - <% else %> - Unpublished - <% end %> - - <.dot /> - Last Updated - - <%= if not Enum.empty?(@note.tags) do %> +
+ <%= if @note.published_at do %> + Published + <% else %> + Unpublished + <% end %> + <.dot /> - Tags - <.tags note={@note} /> - <% end %> - <%= if @current_user do %> - <.dot /> - Show in Admin - <% end %> + Last Updated + + <%= if not Enum.empty?(@note.tags) do %> + <.dot /> + 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 %> +
+
+