add pack and round count to containers

This commit is contained in:
2022-07-01 19:13:54 -04:00
parent 11b1ae9980
commit 9a1a104c6d
4 changed files with 32 additions and 2 deletions

View File

@ -45,7 +45,12 @@ defmodule CanneryWeb.Components.ContainerCard do
</span>
<% end %>
<%= if @container.ammo_groups do %>
<%= unless @container.ammo_groups |> Enum.empty?() do %>
<span class="rounded-lg title text-lg">
<%= gettext("Packs:") %>
<%= @container |> Containers.get_container_ammo_group_count!() %>
</span>
<span class="rounded-lg title text-lg">
<%= gettext("Rounds:") %>
<%= @container |> Containers.get_container_rounds!() %>