add used filtering to ammo type show page

This commit is contained in:
2022-11-07 00:25:34 -05:00
parent 2e0bb861f1
commit 36a0a1c6c8
21 changed files with 165 additions and 44 deletions

View File

@ -32,7 +32,7 @@ defmodule CanneryWeb.Components.AmmoGroupCard do
<div class="flex flex-col justify-center items-center">
<span class="rounded-lg title text-lg">
<%= gettext("Count:") %>
<%= @ammo_group.count %>
<%= if @ammo_group.count == 0, do: "Empty", else: @ammo_group.count %>
</span>
<%= if @ammo_group.notes do %>