Listing Tags

Tags can be added to your containers to help you organize

<%= if @tags |> Enum.empty?() do %>

No tags 😔

<%= live_patch("Make your first tag!", to: Routes.tag_index_path(@socket, :new), class: "btn btn-primary" ) %> <% else %> <%= live_patch("New Tag", to: Routes.tag_index_path(@socket, :new), class: "btn btn-primary" ) %> <% end %>
<%= for tag <- @tags do %> <.tag_card tag={tag} /> <% end %>
<%= if @live_action in [:new, :edit] do %> <%= live_modal(CanneryWeb.TagLive.FormComponent, id: @tag.id || :new, title: @page_title, action: @live_action, tag: @tag, return_to: Routes.tag_index_path(@socket, :index), current_user: @current_user ) %> <% end %>