devel #193

Merged
inhji merged 9 commits from devel into main 2023-07-07 13:55:59 +02:00
Showing only changes of commit 9c5f858694 - Show all commits

View file

@ -66,12 +66,13 @@ defmodule ChiyaWeb.PublicComponents do
end end
attr :note, :map, required: true attr :note, :map, required: true
attr :class_tag, :string, default: ""
def tags(assigns) do def tags(assigns) do
~H""" ~H"""
<span class="inline-flex flex-row gap-1"> <span class="inline-flex flex-row gap-1">
<%= for tag <- @note.tags do %> <%= for tag <- @note.tags do %>
<a href={~p"/tagged-with/#{tag.slug}"} class="underline-link font-semibold | p-category"> <a href={~p"/tagged-with/#{tag.slug}"} class={["p-category", @class_tag]}>
<%= tag.name %> <%= tag.name %>
</a> </a>
<% end %> <% end %>