forked from shibao/cannery
		
	add used filtering to ammo index page
This commit is contained in:
		| @@ -1,6 +1,7 @@ | ||||
| # v0.5.5 | ||||
| - Update translations | ||||
| - Make ammo index page a bit more compact | ||||
| - Make ammo index page filter used-up ammo | ||||
| - Make ammo catalog page include ammo count | ||||
| - Make ammo type show page a bit more compact | ||||
| - Make ammo type show page include container names for each ammo | ||||
|   | ||||
| @@ -9,7 +9,7 @@ defmodule CanneryWeb.AmmoGroupLive.Index do | ||||
|  | ||||
|   @impl true | ||||
|   def mount(_params, _session, socket) do | ||||
|     {:ok, socket |> display_ammo_groups()} | ||||
|     {:ok, socket |> assign(show_used: false) |> display_ammo_groups()} | ||||
|   end | ||||
|  | ||||
|   @impl true | ||||
| @@ -72,8 +72,17 @@ defmodule CanneryWeb.AmmoGroupLive.Index do | ||||
|     {:noreply, socket |> display_ammo_groups()} | ||||
|   end | ||||
|  | ||||
|   defp display_ammo_groups(%{assigns: %{current_user: current_user}} = socket) do | ||||
|     ammo_groups = Ammo.list_ammo_groups(current_user) |> Repo.preload([:ammo_type, :container]) | ||||
|   @impl true | ||||
|   def handle_event("toggle_show_used", _, %{assigns: %{show_used: show_used}} = socket) do | ||||
|     {:noreply, socket |> assign(:show_used, !show_used) |> display_ammo_groups()} | ||||
|   end | ||||
|  | ||||
|   defp display_ammo_groups( | ||||
|          %{assigns: %{current_user: current_user, show_used: show_used}} = socket | ||||
|        ) do | ||||
|     ammo_groups = | ||||
|       Ammo.list_ammo_groups(current_user, show_used) |> Repo.preload([:ammo_type, :container]) | ||||
|  | ||||
|     ammo_types_count = Ammo.get_ammo_types_count!(current_user) | ||||
|     containers_count = Containers.get_containers_count!(current_user) | ||||
|  | ||||
|   | ||||
| @@ -46,6 +46,14 @@ | ||||
|   <% end %> | ||||
|  | ||||
|   <%= unless @ammo_groups |> Enum.empty?() do %> | ||||
|     <div class="flex flex-col justify-center items-center"> | ||||
|       <.toggle_button action="toggle_show_used" value={@show_used}> | ||||
|         <span class="title text-lg text-primary-600"> | ||||
|           <%= gettext("Show used") %> | ||||
|         </span> | ||||
|       </.toggle_button> | ||||
|     </div> | ||||
|  | ||||
|     <.live_component | ||||
|       module={CanneryWeb.Components.TableComponent} | ||||
|       id="ammo_groups_index_table" | ||||
|   | ||||
| @@ -156,7 +156,7 @@ msgid "Why not get some ready to shoot?" | ||||
| msgstr "" | ||||
|  | ||||
| #, elixir-autogen, elixir-format | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:151 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:160 | ||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:91 | ||||
| #: lib/cannery_web/live/range_live/index.html.heex:36 | ||||
| msgid "Record shots" | ||||
|   | ||||
| @@ -169,7 +169,7 @@ msgid "Why not get some ready to shoot?" | ||||
| msgstr "Warum nicht einige für den Schießstand auswählen?" | ||||
|  | ||||
| #, elixir-autogen, elixir-format | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:151 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:160 | ||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:91 | ||||
| #: lib/cannery_web/live/range_live/index.html.heex:36 | ||||
| msgid "Record shots" | ||||
|   | ||||
| @@ -54,7 +54,7 @@ msgstr "Munition" | ||||
|  | ||||
| #, elixir-autogen, elixir-format | ||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:21 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:81 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:90 | ||||
| msgid "Ammo type" | ||||
| msgstr "Munitionsarten" | ||||
|  | ||||
| @@ -119,7 +119,7 @@ msgstr "Gehäusematerial" | ||||
| #, elixir-autogen, elixir-format | ||||
| #: lib/cannery_web/components/move_ammo_group_component.ex:67 | ||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:48 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:86 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:95 | ||||
| msgid "Container" | ||||
| msgstr "Behälter" | ||||
|  | ||||
| @@ -139,7 +139,7 @@ msgstr "Korrosiv" | ||||
|  | ||||
| #, elixir-autogen, elixir-format | ||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:27 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:82 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:91 | ||||
| msgid "Count" | ||||
| msgstr "Anzahl" | ||||
|  | ||||
| @@ -371,7 +371,7 @@ msgstr "Druck" | ||||
|  | ||||
| #, elixir-autogen, elixir-format | ||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:34 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:83 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:92 | ||||
| msgid "Price paid" | ||||
| msgstr "Kaufpreis" | ||||
|  | ||||
| @@ -508,7 +508,7 @@ msgstr "Keine Tags für diesen Behälter" | ||||
|  | ||||
| #, elixir-autogen, elixir-format | ||||
| #: lib/cannery_web/components/topbar.ex:68 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:85 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:94 | ||||
| msgid "Range" | ||||
| msgstr "Schießplatz" | ||||
|  | ||||
| @@ -601,7 +601,7 @@ msgstr "Munitionsgruppe verschieben" | ||||
|  | ||||
| #, elixir-autogen, elixir-format | ||||
| #: lib/cannery_web/components/move_ammo_group_component.ex:80 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:208 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:217 | ||||
| msgid "Move ammo" | ||||
| msgstr "Munition verschieben" | ||||
|  | ||||
| @@ -617,7 +617,7 @@ msgstr "Schießkladde" | ||||
|  | ||||
| #, elixir-autogen, elixir-format | ||||
| #: lib/cannery_web/components/ammo_group_card.ex:53 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:125 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:134 | ||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:37 | ||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:44 | ||||
| #: lib/cannery_web/live/ammo_type_live/index.ex:118 | ||||
| @@ -682,12 +682,12 @@ msgid "New password" | ||||
| msgstr "Neues Passwort" | ||||
|  | ||||
| #, elixir-autogen, elixir-format | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:148 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:157 | ||||
| msgid "Stage" | ||||
| msgstr "Markiert" | ||||
|  | ||||
| #, elixir-autogen, elixir-format | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:148 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:157 | ||||
| msgid "Unstage" | ||||
| msgstr "Demarkiert" | ||||
|  | ||||
| @@ -738,7 +738,7 @@ msgid "No cost information" | ||||
| msgstr "Keine Preisinformationen" | ||||
|  | ||||
| #, elixir-autogen, elixir-format | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:84 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:93 | ||||
| msgid "% left" | ||||
| msgstr "% verbleibend" | ||||
|  | ||||
| @@ -824,7 +824,7 @@ msgid "Ammo types" | ||||
| msgstr "Munitionsart" | ||||
|  | ||||
| #, elixir-autogen, elixir-format | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:87 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:96 | ||||
| msgid "Added on" | ||||
| msgstr "Hinzugefügt am" | ||||
|  | ||||
| @@ -947,6 +947,7 @@ msgid "Container:" | ||||
| msgstr "Behälter" | ||||
|  | ||||
| #, elixir-autogen, elixir-format | ||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:52 | ||||
| #: lib/cannery_web/live/ammo_type_live/show.html.heex:119 | ||||
| #: lib/cannery_web/live/container_live/show.html.heex:90 | ||||
| msgid "Show used" | ||||
|   | ||||
| @@ -100,7 +100,7 @@ msgid "Are you sure you want to delete the invite for %{name}?" | ||||
| msgstr "Sind Sie sicher, dass sie die Einladung für %{name} löschen möchten?" | ||||
|  | ||||
| #, elixir-autogen, elixir-format | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:184 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:193 | ||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:71 | ||||
| msgid "Are you sure you want to delete this ammo?" | ||||
| msgstr "Sind Sie sicher, dass sie diese Munition löschen möchten?" | ||||
|   | ||||
| @@ -39,7 +39,7 @@ msgstr "" | ||||
|  | ||||
| #, elixir-autogen, elixir-format | ||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:21 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:81 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:90 | ||||
| msgid "Ammo type" | ||||
| msgstr "" | ||||
|  | ||||
| @@ -104,7 +104,7 @@ msgstr "" | ||||
| #, elixir-autogen, elixir-format | ||||
| #: lib/cannery_web/components/move_ammo_group_component.ex:67 | ||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:48 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:86 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:95 | ||||
| msgid "Container" | ||||
| msgstr "" | ||||
|  | ||||
| @@ -124,7 +124,7 @@ msgstr "" | ||||
|  | ||||
| #, elixir-autogen, elixir-format | ||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:27 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:82 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:91 | ||||
| msgid "Count" | ||||
| msgstr "" | ||||
|  | ||||
| @@ -356,7 +356,7 @@ msgstr "" | ||||
|  | ||||
| #, elixir-autogen, elixir-format | ||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:34 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:83 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:92 | ||||
| msgid "Price paid" | ||||
| msgstr "" | ||||
|  | ||||
| @@ -491,7 +491,7 @@ msgstr "" | ||||
|  | ||||
| #, elixir-autogen, elixir-format | ||||
| #: lib/cannery_web/components/topbar.ex:68 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:85 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:94 | ||||
| msgid "Range" | ||||
| msgstr "" | ||||
|  | ||||
| @@ -584,7 +584,7 @@ msgstr "" | ||||
|  | ||||
| #, elixir-autogen, elixir-format | ||||
| #: lib/cannery_web/components/move_ammo_group_component.ex:80 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:208 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:217 | ||||
| msgid "Move ammo" | ||||
| msgstr "" | ||||
|  | ||||
| @@ -600,7 +600,7 @@ msgstr "" | ||||
|  | ||||
| #, elixir-autogen, elixir-format | ||||
| #: lib/cannery_web/components/ammo_group_card.ex:53 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:125 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:134 | ||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:37 | ||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:44 | ||||
| #: lib/cannery_web/live/ammo_type_live/index.ex:118 | ||||
| @@ -665,12 +665,12 @@ msgid "New password" | ||||
| msgstr "" | ||||
|  | ||||
| #, elixir-autogen, elixir-format | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:148 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:157 | ||||
| msgid "Stage" | ||||
| msgstr "" | ||||
|  | ||||
| #, elixir-autogen, elixir-format | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:148 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:157 | ||||
| msgid "Unstage" | ||||
| msgstr "" | ||||
|  | ||||
| @@ -721,7 +721,7 @@ msgid "No cost information" | ||||
| msgstr "" | ||||
|  | ||||
| #, elixir-autogen, elixir-format | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:84 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:93 | ||||
| msgid "% left" | ||||
| msgstr "" | ||||
|  | ||||
| @@ -807,7 +807,7 @@ msgid "Ammo types" | ||||
| msgstr "" | ||||
|  | ||||
| #, elixir-autogen, elixir-format | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:87 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:96 | ||||
| msgid "Added on" | ||||
| msgstr "" | ||||
|  | ||||
| @@ -930,6 +930,7 @@ msgid "Container:" | ||||
| msgstr "" | ||||
|  | ||||
| #, elixir-autogen, elixir-format | ||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:52 | ||||
| #: lib/cannery_web/live/ammo_type_live/show.html.heex:119 | ||||
| #: lib/cannery_web/live/container_live/show.html.heex:90 | ||||
| msgid "Show used" | ||||
|   | ||||
| @@ -157,7 +157,7 @@ msgid "Why not get some ready to shoot?" | ||||
| msgstr "" | ||||
|  | ||||
| #, elixir-autogen, elixir-format | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:151 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:160 | ||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:91 | ||||
| #: lib/cannery_web/live/range_live/index.html.heex:36 | ||||
| msgid "Record shots" | ||||
|   | ||||
| @@ -40,7 +40,7 @@ msgstr "" | ||||
|  | ||||
| #, elixir-autogen, elixir-format | ||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:21 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:81 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:90 | ||||
| msgid "Ammo type" | ||||
| msgstr "" | ||||
|  | ||||
| @@ -105,7 +105,7 @@ msgstr "" | ||||
| #, elixir-autogen, elixir-format | ||||
| #: lib/cannery_web/components/move_ammo_group_component.ex:67 | ||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:48 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:86 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:95 | ||||
| msgid "Container" | ||||
| msgstr "" | ||||
|  | ||||
| @@ -125,7 +125,7 @@ msgstr "" | ||||
|  | ||||
| #, elixir-autogen, elixir-format | ||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:27 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:82 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:91 | ||||
| msgid "Count" | ||||
| msgstr "" | ||||
|  | ||||
| @@ -357,7 +357,7 @@ msgstr "" | ||||
|  | ||||
| #, elixir-autogen, elixir-format | ||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:34 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:83 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:92 | ||||
| msgid "Price paid" | ||||
| msgstr "" | ||||
|  | ||||
| @@ -492,7 +492,7 @@ msgstr "" | ||||
|  | ||||
| #, elixir-autogen, elixir-format | ||||
| #: lib/cannery_web/components/topbar.ex:68 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:85 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:94 | ||||
| msgid "Range" | ||||
| msgstr "" | ||||
|  | ||||
| @@ -585,7 +585,7 @@ msgstr "" | ||||
|  | ||||
| #, elixir-autogen, elixir-format | ||||
| #: lib/cannery_web/components/move_ammo_group_component.ex:80 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:208 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:217 | ||||
| msgid "Move ammo" | ||||
| msgstr "" | ||||
|  | ||||
| @@ -601,7 +601,7 @@ msgstr "" | ||||
|  | ||||
| #, elixir-autogen, elixir-format | ||||
| #: lib/cannery_web/components/ammo_group_card.ex:53 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:125 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:134 | ||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:37 | ||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:44 | ||||
| #: lib/cannery_web/live/ammo_type_live/index.ex:118 | ||||
| @@ -666,12 +666,12 @@ msgid "New password" | ||||
| msgstr "" | ||||
|  | ||||
| #, elixir-autogen, elixir-format | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:148 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:157 | ||||
| msgid "Stage" | ||||
| msgstr "" | ||||
|  | ||||
| #, elixir-autogen, elixir-format | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:148 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:157 | ||||
| msgid "Unstage" | ||||
| msgstr "" | ||||
|  | ||||
| @@ -722,7 +722,7 @@ msgid "No cost information" | ||||
| msgstr "" | ||||
|  | ||||
| #, elixir-autogen, elixir-format | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:84 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:93 | ||||
| msgid "% left" | ||||
| msgstr "" | ||||
|  | ||||
| @@ -808,7 +808,7 @@ msgid "Ammo types" | ||||
| msgstr "" | ||||
|  | ||||
| #, elixir-autogen, elixir-format | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:87 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:96 | ||||
| msgid "Added on" | ||||
| msgstr "" | ||||
|  | ||||
| @@ -931,6 +931,7 @@ msgid "Container:" | ||||
| msgstr "" | ||||
|  | ||||
| #, elixir-autogen, elixir-format | ||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:52 | ||||
| #: lib/cannery_web/live/ammo_type_live/show.html.heex:119 | ||||
| #: lib/cannery_web/live/container_live/show.html.heex:90 | ||||
| msgid "Show used" | ||||
|   | ||||
| @@ -86,7 +86,7 @@ msgid "Are you sure you want to delete the invite for %{name}?" | ||||
| msgstr "" | ||||
|  | ||||
| #, elixir-autogen, elixir-format | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:184 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:193 | ||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:71 | ||||
| msgid "Are you sure you want to delete this ammo?" | ||||
| msgstr "" | ||||
|   | ||||
| @@ -169,7 +169,7 @@ msgid "Why not get some ready to shoot?" | ||||
| msgstr "" | ||||
|  | ||||
| #, elixir-autogen, elixir-format | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:151 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:160 | ||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:91 | ||||
| #: lib/cannery_web/live/range_live/index.html.heex:36 | ||||
| msgid "Record shots" | ||||
|   | ||||
| @@ -54,7 +54,7 @@ msgstr "" | ||||
|  | ||||
| #, elixir-autogen, elixir-format | ||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:21 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:81 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:90 | ||||
| msgid "Ammo type" | ||||
| msgstr "" | ||||
|  | ||||
| @@ -119,7 +119,7 @@ msgstr "" | ||||
| #, elixir-autogen, elixir-format | ||||
| #: lib/cannery_web/components/move_ammo_group_component.ex:67 | ||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:48 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:86 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:95 | ||||
| msgid "Container" | ||||
| msgstr "" | ||||
|  | ||||
| @@ -139,7 +139,7 @@ msgstr "" | ||||
|  | ||||
| #, elixir-autogen, elixir-format | ||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:27 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:82 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:91 | ||||
| msgid "Count" | ||||
| msgstr "" | ||||
|  | ||||
| @@ -371,7 +371,7 @@ msgstr "" | ||||
|  | ||||
| #, elixir-autogen, elixir-format | ||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:34 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:83 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:92 | ||||
| msgid "Price paid" | ||||
| msgstr "" | ||||
|  | ||||
| @@ -506,7 +506,7 @@ msgstr "" | ||||
|  | ||||
| #, elixir-autogen, elixir-format | ||||
| #: lib/cannery_web/components/topbar.ex:68 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:85 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:94 | ||||
| msgid "Range" | ||||
| msgstr "" | ||||
|  | ||||
| @@ -599,7 +599,7 @@ msgstr "" | ||||
|  | ||||
| #, elixir-autogen, elixir-format | ||||
| #: lib/cannery_web/components/move_ammo_group_component.ex:80 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:208 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:217 | ||||
| msgid "Move ammo" | ||||
| msgstr "" | ||||
|  | ||||
| @@ -615,7 +615,7 @@ msgstr "" | ||||
|  | ||||
| #, elixir-autogen, elixir-format | ||||
| #: lib/cannery_web/components/ammo_group_card.ex:53 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:125 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:134 | ||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:37 | ||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:44 | ||||
| #: lib/cannery_web/live/ammo_type_live/index.ex:118 | ||||
| @@ -680,12 +680,12 @@ msgid "New password" | ||||
| msgstr "" | ||||
|  | ||||
| #, elixir-autogen, elixir-format | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:148 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:157 | ||||
| msgid "Stage" | ||||
| msgstr "" | ||||
|  | ||||
| #, elixir-autogen, elixir-format | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:148 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:157 | ||||
| msgid "Unstage" | ||||
| msgstr "" | ||||
|  | ||||
| @@ -736,7 +736,7 @@ msgid "No cost information" | ||||
| msgstr "" | ||||
|  | ||||
| #, elixir-autogen, elixir-format | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:84 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:93 | ||||
| msgid "% left" | ||||
| msgstr "" | ||||
|  | ||||
| @@ -822,7 +822,7 @@ msgid "Ammo types" | ||||
| msgstr "" | ||||
|  | ||||
| #, elixir-autogen, elixir-format | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:87 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:96 | ||||
| msgid "Added on" | ||||
| msgstr "" | ||||
|  | ||||
| @@ -945,6 +945,7 @@ msgid "Container:" | ||||
| msgstr "" | ||||
|  | ||||
| #, elixir-autogen, elixir-format | ||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:52 | ||||
| #: lib/cannery_web/live/ammo_type_live/show.html.heex:119 | ||||
| #: lib/cannery_web/live/container_live/show.html.heex:90 | ||||
| msgid "Show used" | ||||
|   | ||||
| @@ -100,7 +100,7 @@ msgid "Are you sure you want to delete the invite for %{name}?" | ||||
| msgstr "Está seguro que quiere eliminar la invitación para %{name}?" | ||||
|  | ||||
| #, elixir-autogen, elixir-format | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:184 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:193 | ||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:71 | ||||
| msgid "Are you sure you want to delete this ammo?" | ||||
| msgstr "Está seguro que desea eliminar esta munición?" | ||||
|   | ||||
| @@ -169,7 +169,7 @@ msgid "Why not get some ready to shoot?" | ||||
| msgstr "Pourquoi pas en préparer pour tirer ?" | ||||
|  | ||||
| #, elixir-autogen, elixir-format | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:151 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:160 | ||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:91 | ||||
| #: lib/cannery_web/live/range_live/index.html.heex:36 | ||||
| msgid "Record shots" | ||||
|   | ||||
| @@ -54,7 +54,7 @@ msgstr "Munition" | ||||
|  | ||||
| #, elixir-autogen, elixir-format | ||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:21 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:81 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:90 | ||||
| msgid "Ammo type" | ||||
| msgstr "Type de munition" | ||||
|  | ||||
| @@ -119,7 +119,7 @@ msgstr "Matériau de la caisse" | ||||
| #, elixir-autogen, elixir-format | ||||
| #: lib/cannery_web/components/move_ammo_group_component.ex:67 | ||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:48 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:86 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:95 | ||||
| msgid "Container" | ||||
| msgstr "Conteneur" | ||||
|  | ||||
| @@ -139,7 +139,7 @@ msgstr "Corrosive" | ||||
|  | ||||
| #, elixir-autogen, elixir-format | ||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:27 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:82 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:91 | ||||
| msgid "Count" | ||||
| msgstr "Quantité" | ||||
|  | ||||
| @@ -371,7 +371,7 @@ msgstr "Pression" | ||||
|  | ||||
| #, elixir-autogen, elixir-format | ||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:34 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:83 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:92 | ||||
| msgid "Price paid" | ||||
| msgstr "Prix payé" | ||||
|  | ||||
| @@ -510,7 +510,7 @@ msgstr "Aucun tag pour ce conteneur" | ||||
|  | ||||
| #, elixir-autogen, elixir-format | ||||
| #: lib/cannery_web/components/topbar.ex:68 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:85 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:94 | ||||
| msgid "Range" | ||||
| msgstr "Portée" | ||||
|  | ||||
| @@ -603,7 +603,7 @@ msgstr "Déplacer le groupe de munition" | ||||
|  | ||||
| #, elixir-autogen, elixir-format | ||||
| #: lib/cannery_web/components/move_ammo_group_component.ex:80 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:208 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:217 | ||||
| msgid "Move ammo" | ||||
| msgstr "Déplacer munition" | ||||
|  | ||||
| @@ -619,7 +619,7 @@ msgstr "Évènements de tir" | ||||
|  | ||||
| #, elixir-autogen, elixir-format | ||||
| #: lib/cannery_web/components/ammo_group_card.ex:53 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:125 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:134 | ||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:37 | ||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:44 | ||||
| #: lib/cannery_web/live/ammo_type_live/index.ex:118 | ||||
| @@ -684,12 +684,12 @@ msgid "New password" | ||||
| msgstr "Nouveau mot de passe" | ||||
|  | ||||
| #, elixir-autogen, elixir-format | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:148 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:157 | ||||
| msgid "Stage" | ||||
| msgstr "Sélectionné" | ||||
|  | ||||
| #, elixir-autogen, elixir-format | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:148 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:157 | ||||
| msgid "Unstage" | ||||
| msgstr "Désélectionner" | ||||
|  | ||||
| @@ -740,7 +740,7 @@ msgid "No cost information" | ||||
| msgstr "Aucune information de prix" | ||||
|  | ||||
| #, elixir-autogen, elixir-format | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:84 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:93 | ||||
| msgid "% left" | ||||
| msgstr "% restante" | ||||
|  | ||||
| @@ -826,7 +826,7 @@ msgid "Ammo types" | ||||
| msgstr "Types de munition" | ||||
|  | ||||
| #, elixir-autogen, elixir-format | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:87 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:96 | ||||
| msgid "Added on" | ||||
| msgstr "Ajouté le" | ||||
|  | ||||
| @@ -949,6 +949,7 @@ msgid "Container:" | ||||
| msgstr "Conteneur" | ||||
|  | ||||
| #, elixir-autogen, elixir-format | ||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:52 | ||||
| #: lib/cannery_web/live/ammo_type_live/show.html.heex:119 | ||||
| #: lib/cannery_web/live/container_live/show.html.heex:90 | ||||
| msgid "Show used" | ||||
|   | ||||
| @@ -101,7 +101,7 @@ msgid "Are you sure you want to delete the invite for %{name}?" | ||||
| msgstr "Êtes-vous certain·e de supprimer l’invitation pour %{name} ?" | ||||
|  | ||||
| #, elixir-autogen, elixir-format | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:184 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:193 | ||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:71 | ||||
| msgid "Are you sure you want to delete this ammo?" | ||||
| msgstr "Êtes-vous certain·e de supprimer cette munition ?" | ||||
|   | ||||
| @@ -85,7 +85,7 @@ msgid "Are you sure you want to delete the invite for %{name}?" | ||||
| msgstr "" | ||||
|  | ||||
| #, elixir-autogen, elixir-format | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:184 | ||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:193 | ||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:71 | ||||
| msgid "Are you sure you want to delete this ammo?" | ||||
| msgstr "" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user