From 8d33ce80e8347757aa2e1ce354f03791cc6874b4 Mon Sep 17 00:00:00 2001 From: inhji Date: Fri, 8 Sep 2023 12:44:57 +0200 Subject: [PATCH 1/2] lib/chiya_web/controllers/page_html.ex aktualisiert --- lib/chiya_web/controllers/page_html.ex | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/chiya_web/controllers/page_html.ex b/lib/chiya_web/controllers/page_html.ex index ed60d31..970824e 100644 --- a/lib/chiya_web/controllers/page_html.ex +++ b/lib/chiya_web/controllers/page_html.ex @@ -7,6 +7,7 @@ defmodule ChiyaWeb.PageHTML do attr :notes, :list, required: true + attr :show_content, :boolean, default: true def note_list_default(assigns) def tag_list([]), do: "No Tags" -- 2.39.5 From 50ea3397f52eae55a75e8d4dd03ab2b536aa6fe0 Mon Sep 17 00:00:00 2001 From: inhji Date: Fri, 8 Sep 2023 12:46:19 +0200 Subject: [PATCH 2/2] lib/chiya_web/controllers/page_html.ex aktualisiert --- lib/chiya_web/controllers/page_html.ex | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/chiya_web/controllers/page_html.ex b/lib/chiya_web/controllers/page_html.ex index 970824e..db17859 100644 --- a/lib/chiya_web/controllers/page_html.ex +++ b/lib/chiya_web/controllers/page_html.ex @@ -10,6 +10,12 @@ defmodule ChiyaWeb.PageHTML do attr :show_content, :boolean, default: true def note_list_default(assigns) + attr :notes, :list, required: true + def note_list_microblog(assigns) + + attr :notes, :list, required: true + def note_list_gallery(assigns) + def tag_list([]), do: "No Tags" def tag_list(tags), do: Enum.map_join(tags, ", ", fn t -> t.name end) -- 2.39.5