forked from shibao/cannery
		
	add pack and round count to containers
This commit is contained in:
		@@ -22,6 +22,18 @@
 | 
			
		||||
    </span>
 | 
			
		||||
  <% end %>
 | 
			
		||||
 | 
			
		||||
  <%= 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!() %>
 | 
			
		||||
    </span>
 | 
			
		||||
  <% end %>
 | 
			
		||||
 | 
			
		||||
  <div class="flex space-x-4 justify-center items-center text-primary-600">
 | 
			
		||||
    <%= live_patch to: Routes.container_show_path(Endpoint, :edit, @container),
 | 
			
		||||
               class: "text-primary-600 link",
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user