From 2431a079186cc016832070c534f607fda7ac5d0f Mon Sep 17 00:00:00 2001 From: Inhji Date: Mon, 13 Mar 2023 05:59:40 +0100 Subject: [PATCH] add gallery to public note --- .../controllers/page_html/note.html.heex | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/lib/chiya_web/controllers/page_html/note.html.heex b/lib/chiya_web/controllers/page_html/note.html.heex index 96ea187..46b3d3a 100644 --- a/lib/chiya_web/controllers/page_html/note.html.heex +++ b/lib/chiya_web/controllers/page_html/note.html.heex @@ -6,3 +6,25 @@
<%= Markdown.render(@note.content) |> raw %>
+ +<%= if !Enum.empty?(@note.images) do %> + <.line /> + +
+ <%= for image <- @note.images do %> + + <% end %> +
+<% end %> +