From 87d98c986933ce4bcd528c1d22d9a5f5b5681b3c Mon Sep 17 00:00:00 2001 From: inhji Date: Fri, 7 Jul 2023 13:02:31 +0200 Subject: [PATCH] =?UTF-8?q?=E2=80=9Elib/chiya=5Fweb/components/public=5Fco?= =?UTF-8?q?mponents.ex=E2=80=9C=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/chiya_web/components/public_components.ex | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/lib/chiya_web/components/public_components.ex b/lib/chiya_web/components/public_components.ex index 0ef63c1..37980f2 100644 --- a/lib/chiya_web/components/public_components.ex +++ b/lib/chiya_web/components/public_components.ex @@ -65,6 +65,20 @@ defmodule ChiyaWeb.PublicComponents do """ end + attr :note, :map, required: true + + def tags(assigns) do + ~H""" + + <%= for tag <- @note.tags do %> + + <%= tag.name %> + + <% end %> + + """ + end + @doc """ Renders a note-header with title. """