defmodule CanneryWeb.Components.ContainerCard do @moduledoc """ Display card for a container """ use CanneryWeb, :component import CanneryWeb.Components.TagCard alias Cannery.{Containers, Repo} alias CanneryWeb.Endpoint def container_card(%{container: container} = assigns) do assigns = assigns |> Map.put(:container, container |> Repo.preload([:tags, :ammo_groups])) ~H"""