forked from shibao/cannery
		
	run mix format
This commit is contained in:
		@@ -72,9 +72,15 @@ defmodule CanneryWeb.Components.ContainerTableComponent do
 | 
			
		||||
      tag_actions: tag_actions,
 | 
			
		||||
      actions: actions,
 | 
			
		||||
      pack_count:
 | 
			
		||||
        Ammo.get_grouped_packs_count(current_user, containers: containers, group_by: :container_id),
 | 
			
		||||
        Ammo.get_grouped_packs_count(current_user,
 | 
			
		||||
          containers: containers,
 | 
			
		||||
          group_by: :container_id
 | 
			
		||||
        ),
 | 
			
		||||
      round_count:
 | 
			
		||||
        Ammo.get_grouped_round_count(current_user, containers: containers, group_by: :container_id)
 | 
			
		||||
        Ammo.get_grouped_round_count(current_user,
 | 
			
		||||
          containers: containers,
 | 
			
		||||
          group_by: :container_id
 | 
			
		||||
        )
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    rows =
 | 
			
		||||
 
 | 
			
		||||
@@ -12,7 +12,11 @@ defmodule CanneryWeb.ExportController do
 | 
			
		||||
    pack_counts = Ammo.get_grouped_packs_count(current_user, types: types, group_by: :type_id)
 | 
			
		||||
 | 
			
		||||
    total_pack_counts =
 | 
			
		||||
      Ammo.get_grouped_packs_count(current_user, types: types, group_by: :type_id, show_used: true)
 | 
			
		||||
      Ammo.get_grouped_packs_count(current_user,
 | 
			
		||||
        types: types,
 | 
			
		||||
        group_by: :type_id,
 | 
			
		||||
        show_used: true
 | 
			
		||||
      )
 | 
			
		||||
 | 
			
		||||
    average_costs = Ammo.get_average_costs(types, current_user)
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -145,7 +145,9 @@
 | 
			
		||||
                navigate={~p"/ammo/show/#{pack}"}
 | 
			
		||||
                class="text-primary-600 link"
 | 
			
		||||
                aria-label={
 | 
			
		||||
                  dgettext("actions", "View pack of %{pack_count} bullets", pack_count: pack_count)
 | 
			
		||||
                  dgettext("actions", "View pack of %{pack_count} bullets",
 | 
			
		||||
                    pack_count: pack_count
 | 
			
		||||
                  )
 | 
			
		||||
                }
 | 
			
		||||
              >
 | 
			
		||||
                <i class="fa-fw fa-lg fas fa-eye"></i>
 | 
			
		||||
@@ -155,7 +157,9 @@
 | 
			
		||||
                patch={~p"/ammo/edit/#{pack}"}
 | 
			
		||||
                class="text-primary-600 link"
 | 
			
		||||
                aria-label={
 | 
			
		||||
                  dgettext("actions", "Edit pack of %{pack_count} bullets", pack_count: pack_count)
 | 
			
		||||
                  dgettext("actions", "Edit pack of %{pack_count} bullets",
 | 
			
		||||
                    pack_count: pack_count
 | 
			
		||||
                  )
 | 
			
		||||
                }
 | 
			
		||||
              >
 | 
			
		||||
                <i class="fa-fw fa-lg fas fa-edit"></i>
 | 
			
		||||
 
 | 
			
		||||
@@ -80,7 +80,9 @@
 | 
			
		||||
        phx-submit="change_class"
 | 
			
		||||
        class="flex items-center"
 | 
			
		||||
      >
 | 
			
		||||
        <%= label(f, :class, gettext("Class"), class: "title text-primary-600 text-lg text-center") %>
 | 
			
		||||
        <%= label(f, :class, gettext("Class"),
 | 
			
		||||
          class: "title text-primary-600 text-lg text-center"
 | 
			
		||||
        ) %>
 | 
			
		||||
 | 
			
		||||
        <%= select(
 | 
			
		||||
          f,
 | 
			
		||||
 
 | 
			
		||||
@@ -85,14 +85,18 @@
 | 
			
		||||
      ) %>
 | 
			
		||||
      <%= error_tag(f, :unfired_length, "col-span-3 text-center") %>
 | 
			
		||||
 | 
			
		||||
      <%= label(f, :brass_height, gettext("Brass height"), class: "title text-lg text-primary-600") %>
 | 
			
		||||
      <%= label(f, :brass_height, gettext("Brass height"),
 | 
			
		||||
        class: "title text-lg text-primary-600"
 | 
			
		||||
      ) %>
 | 
			
		||||
      <%= text_input(f, :brass_height,
 | 
			
		||||
        class: "text-center col-span-2 input input-primary",
 | 
			
		||||
        maxlength: 255
 | 
			
		||||
      ) %>
 | 
			
		||||
      <%= error_tag(f, :brass_height, "col-span-3 text-center") %>
 | 
			
		||||
 | 
			
		||||
      <%= label(f, :chamber_size, gettext("Chamber size"), class: "title text-lg text-primary-600") %>
 | 
			
		||||
      <%= label(f, :chamber_size, gettext("Chamber size"),
 | 
			
		||||
        class: "title text-lg text-primary-600"
 | 
			
		||||
      ) %>
 | 
			
		||||
      <%= text_input(f, :chamber_size,
 | 
			
		||||
        class: "text-center col-span-2 input input-primary",
 | 
			
		||||
        maxlength: 255
 | 
			
		||||
@@ -167,7 +171,9 @@
 | 
			
		||||
      <%= hidden_input(f, :jacket_type, value: nil) %>
 | 
			
		||||
    <% end %>
 | 
			
		||||
 | 
			
		||||
    <%= label(f, :case_material, gettext("Case material"), class: "title text-lg text-primary-600") %>
 | 
			
		||||
    <%= label(f, :case_material, gettext("Case material"),
 | 
			
		||||
      class: "title text-lg text-primary-600"
 | 
			
		||||
    ) %>
 | 
			
		||||
    <%= text_input(f, :case_material,
 | 
			
		||||
      class: "text-center col-span-2 input input-primary",
 | 
			
		||||
      maxlength: 255,
 | 
			
		||||
 
 | 
			
		||||
@@ -26,7 +26,9 @@
 | 
			
		||||
        phx-submit="change_class"
 | 
			
		||||
        class="flex items-center"
 | 
			
		||||
      >
 | 
			
		||||
        <%= label(f, :class, gettext("Class"), class: "title text-primary-600 text-lg text-center") %>
 | 
			
		||||
        <%= label(f, :class, gettext("Class"),
 | 
			
		||||
          class: "title text-primary-600 text-lg text-center"
 | 
			
		||||
        ) %>
 | 
			
		||||
 | 
			
		||||
        <%= select(
 | 
			
		||||
          f,
 | 
			
		||||
 
 | 
			
		||||
@@ -198,7 +198,9 @@
 | 
			
		||||
                navigate={~p"/ammo/show/#{pack}"}
 | 
			
		||||
                class="text-primary-600 link"
 | 
			
		||||
                aria-label={
 | 
			
		||||
                  dgettext("actions", "View pack of %{pack_count} bullets", pack_count: pack_count)
 | 
			
		||||
                  dgettext("actions", "View pack of %{pack_count} bullets",
 | 
			
		||||
                    pack_count: pack_count
 | 
			
		||||
                  )
 | 
			
		||||
                }
 | 
			
		||||
              >
 | 
			
		||||
                <i class="fa-fw fa-lg fas fa-eye"></i>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user