devel #193
1 changed files with 2 additions and 1 deletions
|
@ -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 %>
|
||||||
|
|
Loading…
Reference in a new issue