Compare commits
21 Commits
db4b3fab24
...
0.7.0
Author | SHA1 | Date | |
---|---|---|---|
09774e0aed | |||
44d4d7c6f9 | |||
1fed895b82 | |||
3480aff61d | |||
1ea4b99c81 | |||
2191e7f4f4 | |||
8231683958 | |||
a3e7e3a86d | |||
0c088ed06d | |||
1c7721887f | |||
0dbd1af553 | |||
c828def2b2 | |||
7ef582510e | |||
726ede7e46 | |||
8fa75e2559 | |||
0d6f6de7df | |||
76d3554b4b | |||
09394ea408 | |||
3dd6430105 | |||
53bb0ddb03 | |||
e3ff04ced3 |
@ -29,7 +29,7 @@ steps:
|
||||
- npm --prefix ./assets ci --progress=false --no-audit --loglevel=error
|
||||
- npm run --prefix ./assets deploy
|
||||
- mix do phx.digest, gettext.extract
|
||||
- mix test
|
||||
- mix test.all
|
||||
|
||||
- name: build and publish stable
|
||||
image: thegeeklab/drone-docker-buildx
|
||||
@ -38,7 +38,7 @@ steps:
|
||||
repo: shibaobun/cannery
|
||||
purge: true
|
||||
compress: true
|
||||
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||
platforms: linux/amd64,linux/arm/v7
|
||||
username:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
@ -55,7 +55,7 @@ steps:
|
||||
repo: shibaobun/cannery
|
||||
purge: true
|
||||
compress: true
|
||||
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||
platforms: linux/amd64,linux/arm/v7
|
||||
username:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
|
17
CHANGELOG.md
17
CHANGELOG.md
@ -1,3 +1,13 @@
|
||||
# v0.7.0
|
||||
- Add shading to table component
|
||||
- Fix chart to sum by day
|
||||
- Fix whitespace when copying invite url
|
||||
- Make ammo type show page also display ammo groups as table
|
||||
- Make container show page also display ammo groups as table
|
||||
- Display CPR for ammo packs
|
||||
- Add original count for ammo packs
|
||||
- Add ammo pack CPR and original count to json export
|
||||
|
||||
# v0.6.0
|
||||
- Update translations
|
||||
- Display used-up date on used-up ammo
|
||||
@ -7,10 +17,17 @@
|
||||
- Make ammo type show page a bit more compact
|
||||
- Make ammo type show page include container names for each ammo
|
||||
- Make ammo type show page filter used-up ammo
|
||||
- Make container index page optionally display a table
|
||||
- Make container show page a bit more compact
|
||||
- Make container show page filter used-up ammo
|
||||
- Forgot to add the logo as the favicon whoops
|
||||
- Add graph to range page
|
||||
- Add JSON export of data
|
||||
- Add ammo cloning
|
||||
- Add ammo type cloning
|
||||
- Add container cloning
|
||||
- Fix bug with moving ammo packs between containers
|
||||
- Add button to set rounds left to 0 when creating a shot group
|
||||
- Update project dependencies
|
||||
|
||||
# v0.5.4
|
||||
|
@ -67,3 +67,8 @@ window.addEventListener('cannery:clipcopy', (event) => {
|
||||
window.alert('Sorry, your browser does not support clipboard copy.')
|
||||
}
|
||||
})
|
||||
|
||||
// Set input value to 0
|
||||
window.addEventListener('cannery:set-zero', (event) => {
|
||||
event.target.value = 0
|
||||
})
|
||||
|
@ -11,22 +11,23 @@ export default {
|
||||
data: {
|
||||
datasets: [{
|
||||
label: el.dataset.label,
|
||||
data: data.map(({ date, count, labels }) => ({
|
||||
labels,
|
||||
data: data.map(({ date, count, label }) => ({
|
||||
label,
|
||||
x: date,
|
||||
y: count
|
||||
})),
|
||||
backgroundColor: el.dataset.color,
|
||||
backgroundColor: `${el.dataset.color}77`,
|
||||
borderColor: el.dataset.color,
|
||||
fill: true,
|
||||
borderWidth: 4
|
||||
borderWidth: 3,
|
||||
pointBorderWidth: 1
|
||||
}]
|
||||
},
|
||||
options: {
|
||||
elements: {
|
||||
point: {
|
||||
radius: 7,
|
||||
hoverRadius: 10
|
||||
radius: 9,
|
||||
hoverRadius: 12
|
||||
}
|
||||
},
|
||||
plugins: {
|
||||
@ -39,7 +40,8 @@ export default {
|
||||
tooltip: {
|
||||
displayColors: false,
|
||||
callbacks: {
|
||||
label: ({ raw: { labels } }) => labels
|
||||
title: (contexts) => contexts.map(({ raw: { x } }) => Intl.DateTimeFormat([], { timeZone: 'Etc/UTC', dateStyle: 'short' }).format(new Date(x))),
|
||||
label: ({ raw: { label } }) => label
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -9,6 +9,14 @@ defmodule Cannery.Accounts.User do
|
||||
alias Ecto.{Changeset, UUID}
|
||||
alias Cannery.{Accounts.User, Invites.Invite}
|
||||
|
||||
@derive {Jason.Encoder,
|
||||
only: [
|
||||
:id,
|
||||
:email,
|
||||
:confirmed_at,
|
||||
:role,
|
||||
:locale
|
||||
]}
|
||||
@derive {Inspect, except: [:password]}
|
||||
@primary_key {:id, :binary_id, autogenerate: true}
|
||||
@foreign_key_type :binary_id
|
||||
|
@ -9,6 +9,14 @@ defmodule Cannery.ActivityLog.ShotGroup do
|
||||
alias Cannery.{Accounts.User, ActivityLog.ShotGroup, Ammo.AmmoGroup, Repo}
|
||||
alias Ecto.{Changeset, UUID}
|
||||
|
||||
@derive {Jason.Encoder,
|
||||
only: [
|
||||
:id,
|
||||
:count,
|
||||
:date,
|
||||
:notes,
|
||||
:ammo_group_id
|
||||
]}
|
||||
@primary_key {:id, :binary_id, autogenerate: true}
|
||||
@foreign_key_type :binary_id
|
||||
schema "shot_groups" do
|
||||
|
@ -101,7 +101,7 @@ defmodule Cannery.Ammo do
|
||||
## Examples
|
||||
|
||||
iex> get_round_count_for_ammo_type(123, %User{id: 123})
|
||||
%AmmoType{}
|
||||
35
|
||||
|
||||
iex> get_round_count_for_ammo_type(456, %User{id: 123})
|
||||
** (Ecto.NoResultsError)
|
||||
@ -127,7 +127,7 @@ defmodule Cannery.Ammo do
|
||||
## Examples
|
||||
|
||||
iex> get_used_count_for_ammo_type(123, %User{id: 123})
|
||||
%AmmoType{}
|
||||
35
|
||||
|
||||
iex> get_used_count_for_ammo_type(456, %User{id: 123})
|
||||
** (Ecto.NoResultsError)
|
||||
@ -146,6 +146,29 @@ defmodule Cannery.Ammo do
|
||||
) || 0
|
||||
end
|
||||
|
||||
@doc """
|
||||
Gets the total number of ammo ever bought for an ammo type
|
||||
|
||||
Raises `Ecto.NoResultsError` if the Ammo type does not exist.
|
||||
|
||||
## Examples
|
||||
|
||||
iex> get_historical_count_for_ammo_type(123, %User{id: 123})
|
||||
%AmmoType{}
|
||||
|
||||
iex> get_historical_count_for_ammo_type(456, %User{id: 123})
|
||||
** (Ecto.NoResultsError)
|
||||
|
||||
"""
|
||||
@spec get_historical_count_for_ammo_type(AmmoType.t(), User.t()) :: non_neg_integer()
|
||||
def get_historical_count_for_ammo_type(
|
||||
%AmmoType{user_id: user_id} = ammo_type,
|
||||
%User{id: user_id} = user
|
||||
) do
|
||||
get_round_count_for_ammo_type(ammo_type, user) +
|
||||
get_used_count_for_ammo_type(ammo_type, user)
|
||||
end
|
||||
|
||||
@doc """
|
||||
Creates a ammo_type.
|
||||
|
||||
@ -305,9 +328,12 @@ defmodule Cannery.Ammo do
|
||||
|
||||
## Examples
|
||||
|
||||
iex> get_ammo_groups_count_for_type(%User{id: 123})
|
||||
iex> get_ammo_groups_count_for_type(%AmmoType{id: 123}, %User{id: 123})
|
||||
3
|
||||
|
||||
iex> get_ammo_groups_count_for_type(%AmmoType{id: 123}, %User{id: 123}, true)
|
||||
5
|
||||
|
||||
"""
|
||||
@spec get_ammo_groups_count_for_type(AmmoType.t(), User.t()) :: [AmmoGroup.t()]
|
||||
@spec get_ammo_groups_count_for_type(AmmoType.t(), User.t(), include_empty :: boolean()) ::
|
||||
@ -343,6 +369,30 @@ defmodule Cannery.Ammo do
|
||||
) || 0
|
||||
end
|
||||
|
||||
@doc """
|
||||
Returns the count of used ammo_groups for an ammo type.
|
||||
|
||||
## Examples
|
||||
|
||||
iex> get_used_ammo_groups_count_for_type(%AmmoType{id: 123}, %User{id: 123})
|
||||
3
|
||||
|
||||
"""
|
||||
@spec get_used_ammo_groups_count_for_type(AmmoType.t(), User.t()) :: [AmmoGroup.t()]
|
||||
def get_used_ammo_groups_count_for_type(
|
||||
%AmmoType{id: ammo_type_id, user_id: user_id},
|
||||
%User{id: user_id}
|
||||
) do
|
||||
Repo.one!(
|
||||
from ag in AmmoGroup,
|
||||
where: ag.user_id == ^user_id,
|
||||
where: ag.ammo_type_id == ^ammo_type_id,
|
||||
where: ag.count == 0,
|
||||
distinct: true,
|
||||
select: count(ag.id)
|
||||
) || 0
|
||||
end
|
||||
|
||||
@doc """
|
||||
Returns the list of ammo_groups for a user.
|
||||
|
||||
@ -456,11 +506,35 @@ defmodule Cannery.Ammo do
|
||||
ammo_group = ammo_group |> Repo.preload(:shot_groups)
|
||||
|
||||
shot_group_sum =
|
||||
ammo_group.shot_groups |> Enum.map(fn %{count: count} -> count end) |> Enum.sum()
|
||||
ammo_group.shot_groups
|
||||
|> Enum.map(fn %{count: count} -> count end)
|
||||
|> Enum.sum()
|
||||
|
||||
round(count / (count + shot_group_sum) * 100)
|
||||
end
|
||||
|
||||
@doc """
|
||||
Gets the original count for an ammo group
|
||||
"""
|
||||
@spec get_original_count(AmmoGroup.t()) :: non_neg_integer()
|
||||
def get_original_count(%AmmoGroup{count: count} = ammo_group) do
|
||||
count + get_used_count(ammo_group)
|
||||
end
|
||||
|
||||
@doc """
|
||||
Calculates the CPR for a single ammo group
|
||||
"""
|
||||
@spec get_cpr(AmmoGroup.t()) :: nil | float()
|
||||
def get_cpr(%AmmoGroup{price_paid: nil}), do: nil
|
||||
|
||||
def get_cpr(%AmmoGroup{price_paid: price_paid} = ammo_group),
|
||||
do: calculate_cpr(price_paid, get_original_count(ammo_group))
|
||||
|
||||
@spec calculate_cpr(price_paid :: float() | nil, count :: integer()) :: float() | nil
|
||||
defp calculate_cpr(nil, _count), do: nil
|
||||
defp calculate_cpr(_price_paid, 0), do: nil
|
||||
defp calculate_cpr(price_paid, total_count), do: price_paid / total_count
|
||||
|
||||
@doc """
|
||||
Creates multiple ammo_groups at once.
|
||||
|
||||
@ -555,8 +629,12 @@ defmodule Cannery.Ammo do
|
||||
"""
|
||||
@spec update_ammo_group(AmmoGroup.t(), attrs :: map(), User.t()) ::
|
||||
{:ok, AmmoGroup.t()} | {:error, Changeset.t(AmmoGroup.t())}
|
||||
def update_ammo_group(%AmmoGroup{user_id: user_id} = ammo_group, attrs, %User{id: user_id}),
|
||||
do: ammo_group |> AmmoGroup.update_changeset(attrs) |> Repo.update()
|
||||
def update_ammo_group(
|
||||
%AmmoGroup{user_id: user_id} = ammo_group,
|
||||
attrs,
|
||||
%User{id: user_id} = user
|
||||
),
|
||||
do: ammo_group |> AmmoGroup.update_changeset(attrs, user) |> Repo.update()
|
||||
|
||||
@doc """
|
||||
Deletes a ammo_group.
|
||||
|
@ -10,9 +10,19 @@ defmodule Cannery.Ammo.AmmoGroup do
|
||||
import CanneryWeb.Gettext
|
||||
import Ecto.Changeset
|
||||
alias Cannery.Ammo.{AmmoGroup, AmmoType}
|
||||
alias Cannery.{Accounts.User, ActivityLog.ShotGroup, Containers.Container}
|
||||
alias Cannery.{Accounts.User, ActivityLog.ShotGroup, Containers, Containers.Container}
|
||||
alias Ecto.{Changeset, UUID}
|
||||
|
||||
@derive {Jason.Encoder,
|
||||
only: [
|
||||
:id,
|
||||
:count,
|
||||
:notes,
|
||||
:price_paid,
|
||||
:staged,
|
||||
:ammo_type_id,
|
||||
:container_id
|
||||
]}
|
||||
@primary_key {:id, :binary_id, autogenerate: true}
|
||||
@foreign_key_type :binary_id
|
||||
schema "ammo_groups" do
|
||||
@ -85,13 +95,24 @@ defmodule Cannery.Ammo.AmmoGroup do
|
||||
end
|
||||
|
||||
@doc false
|
||||
@spec update_changeset(t() | new_ammo_group(), attrs :: map()) ::
|
||||
@spec update_changeset(t() | new_ammo_group(), attrs :: map(), User.t()) ::
|
||||
Changeset.t(t() | new_ammo_group())
|
||||
def update_changeset(ammo_group, attrs) do
|
||||
def update_changeset(ammo_group, attrs, user) do
|
||||
ammo_group
|
||||
|> cast(attrs, [:count, :price_paid, :notes, :staged])
|
||||
|> cast(attrs, [:count, :price_paid, :notes, :staged, :container_id])
|
||||
|> validate_number(:count, greater_than_or_equal_to: 0)
|
||||
|> validate_required([:count, :staged])
|
||||
|> validate_container_id(user)
|
||||
|> validate_required([:count, :staged, :container_id])
|
||||
end
|
||||
|
||||
defp validate_container_id(changeset, user) do
|
||||
container_id = changeset |> Changeset.get_field(:container_id)
|
||||
|
||||
if container_id do
|
||||
Containers.get_container!(container_id, user)
|
||||
end
|
||||
|
||||
changeset
|
||||
end
|
||||
|
||||
@doc """
|
||||
|
@ -11,6 +11,31 @@ defmodule Cannery.Ammo.AmmoType do
|
||||
alias Cannery.Ammo.{AmmoGroup, AmmoType}
|
||||
alias Ecto.{Changeset, UUID}
|
||||
|
||||
@derive {Jason.Encoder,
|
||||
only: [
|
||||
:id,
|
||||
:name,
|
||||
:desc,
|
||||
:bullet_type,
|
||||
:bullet_core,
|
||||
:cartridge,
|
||||
:caliber,
|
||||
:case_material,
|
||||
:jacket_type,
|
||||
:muzzle_velocity,
|
||||
:powder_type,
|
||||
:powder_grains_per_charge,
|
||||
:grains,
|
||||
:pressure,
|
||||
:primer_type,
|
||||
:firing_type,
|
||||
:tracer,
|
||||
:incendiary,
|
||||
:blank,
|
||||
:corrosive,
|
||||
:manufacturer,
|
||||
:upc
|
||||
]}
|
||||
@primary_key {:id, :binary_id, autogenerate: true}
|
||||
@foreign_key_type :binary_id
|
||||
schema "ammo_types" do
|
||||
|
@ -9,6 +9,15 @@ defmodule Cannery.Containers.Container do
|
||||
alias Cannery.Containers.{Container, ContainerTag}
|
||||
alias Cannery.{Accounts.User, Ammo.AmmoGroup, Tags.Tag}
|
||||
|
||||
@derive {Jason.Encoder,
|
||||
only: [
|
||||
:id,
|
||||
:name,
|
||||
:desc,
|
||||
:location,
|
||||
:type,
|
||||
:tags
|
||||
]}
|
||||
@primary_key {:id, :binary_id, autogenerate: true}
|
||||
@foreign_key_type :binary_id
|
||||
schema "containers" do
|
||||
|
@ -9,6 +9,13 @@ defmodule Cannery.Tags.Tag do
|
||||
alias Ecto.{Changeset, UUID}
|
||||
alias Cannery.{Accounts.User, Tags.Tag}
|
||||
|
||||
@derive {Jason.Encoder,
|
||||
only: [
|
||||
:id,
|
||||
:name,
|
||||
:bg_color,
|
||||
:text_color
|
||||
]}
|
||||
@primary_key {:id, :binary_id, autogenerate: true}
|
||||
@foreign_key_type :binary_id
|
||||
schema "tags" do
|
||||
|
@ -5,7 +5,7 @@ defmodule CanneryWeb.Components.AddShotGroupComponent do
|
||||
|
||||
use CanneryWeb, :live_component
|
||||
alias Cannery.{Accounts.User, ActivityLog, ActivityLog.ShotGroup, Ammo.AmmoGroup}
|
||||
alias Phoenix.LiveView.Socket
|
||||
alias Phoenix.LiveView.{JS, Socket}
|
||||
|
||||
@impl true
|
||||
@spec update(
|
||||
|
@ -22,9 +22,16 @@
|
||||
<%= number_input(f, :ammo_left,
|
||||
min: 0,
|
||||
max: @ammo_group.count - 1,
|
||||
placeholder: 0,
|
||||
class: "input input-primary col-span-2"
|
||||
placeholder: gettext("Rounds left"),
|
||||
class: "input input-primary"
|
||||
) %>
|
||||
<button
|
||||
type="button"
|
||||
class="mx-2 my-1 text-sm btn btn-primary"
|
||||
phx-click={JS.dispatch("cannery:set-zero", to: "#shot-group-form_ammo_left")}
|
||||
>
|
||||
<%= gettext("Used up!") %>
|
||||
</button>
|
||||
<%= error_tag(f, :ammo_left, "col-span-3") %>
|
||||
|
||||
<%= label(f, :notes, gettext("Notes"), class: "title text-lg text-primary-600") %>
|
||||
|
@ -17,6 +17,7 @@ defmodule CanneryWeb.Components.AmmoGroupCard do
|
||||
|
||||
preloads = if show_container, do: [:ammo_type, :container], else: [:ammo_type]
|
||||
ammo_group = ammo_group |> Repo.preload(preloads)
|
||||
|
||||
assigns = assigns |> assign(:ammo_group, ammo_group)
|
||||
|
||||
~H"""
|
||||
@ -26,7 +27,7 @@ defmodule CanneryWeb.Components.AmmoGroupCard do
|
||||
border border-gray-400 rounded-lg shadow-lg hover:shadow-md
|
||||
transition-all duration-300 ease-in-out"
|
||||
>
|
||||
<.link patch={Routes.ammo_group_show_path(Endpoint, :show, @ammo_group)} class="mb-2 link">
|
||||
<.link navigate={Routes.ammo_group_show_path(Endpoint, :show, @ammo_group)} class="mb-2 link">
|
||||
<h1 class="title text-xl title-primary-500">
|
||||
<%= @ammo_group.ammo_type.name %>
|
||||
</h1>
|
||||
@ -35,9 +36,16 @@ defmodule CanneryWeb.Components.AmmoGroupCard do
|
||||
<div class="flex flex-col justify-center items-center">
|
||||
<span class="rounded-lg title text-lg">
|
||||
<%= gettext("Count:") %>
|
||||
<%= if @ammo_group.count == 0, do: "Empty", else: @ammo_group.count %>
|
||||
<%= if @ammo_group.count == 0, do: gettext("Empty"), else: @ammo_group.count %>
|
||||
</span>
|
||||
|
||||
<%= if @ammo_group |> Ammo.get_original_count() != @ammo_group.count do %>
|
||||
<span class="rounded-lg title text-lg">
|
||||
<%= gettext("Original Count:") %>
|
||||
<%= @ammo_group |> Ammo.get_original_count() %>
|
||||
</span>
|
||||
<% end %>
|
||||
|
||||
<%= if @ammo_group.notes do %>
|
||||
<span class="rounded-lg title text-lg">
|
||||
<%= gettext("Notes:") %>
|
||||
@ -64,6 +72,13 @@ defmodule CanneryWeb.Components.AmmoGroupCard do
|
||||
amount: @ammo_group.price_paid |> :erlang.float_to_binary(decimals: 2)
|
||||
) %>
|
||||
</span>
|
||||
|
||||
<span class="rounded-lg title text-lg">
|
||||
<%= gettext("CPR:") %>
|
||||
<%= gettext("$%{amount}",
|
||||
amount: @ammo_group |> Ammo.get_cpr() |> :erlang.float_to_binary(decimals: 2)
|
||||
) %>
|
||||
</span>
|
||||
<% end %>
|
||||
|
||||
<%= if @show_container and @ammo_group.container do %>
|
||||
@ -71,7 +86,7 @@ defmodule CanneryWeb.Components.AmmoGroupCard do
|
||||
<%= gettext("Container:") %>
|
||||
|
||||
<.link
|
||||
patch={Routes.container_show_path(Endpoint, :show, @ammo_group.container)}
|
||||
navigate={Routes.container_show_path(Endpoint, :show, @ammo_group.container)}
|
||||
class="link"
|
||||
>
|
||||
<%= @ammo_group.container.name %>
|
||||
|
236
lib/cannery_web/components/ammo_group_table_component.ex
Normal file
236
lib/cannery_web/components/ammo_group_table_component.ex
Normal file
@ -0,0 +1,236 @@
|
||||
defmodule CanneryWeb.Components.AmmoGroupTableComponent do
|
||||
@moduledoc """
|
||||
A component that displays a list of ammo groups
|
||||
"""
|
||||
use CanneryWeb, :live_component
|
||||
alias Cannery.{Accounts.User, Ammo, Ammo.AmmoGroup, Repo}
|
||||
alias Ecto.UUID
|
||||
alias Phoenix.LiveView.{Rendered, Socket}
|
||||
|
||||
@impl true
|
||||
@spec update(
|
||||
%{
|
||||
required(:id) => UUID.t(),
|
||||
required(:current_user) => User.t(),
|
||||
required(:ammo_groups) => [AmmoGroup.t()],
|
||||
optional(:show_used) => boolean(),
|
||||
optional(:ammo_type) => Rendered.t(),
|
||||
optional(:range) => Rendered.t(),
|
||||
optional(:container) => Rendered.t(),
|
||||
optional(:actions) => Rendered.t(),
|
||||
optional(any()) => any()
|
||||
},
|
||||
Socket.t()
|
||||
) :: {:ok, Socket.t()}
|
||||
def update(%{id: _id, ammo_groups: _ammo_group, current_user: _current_user} = assigns, socket) do
|
||||
socket =
|
||||
socket
|
||||
|> assign(assigns)
|
||||
|> assign_new(:show_used, fn -> false end)
|
||||
|> assign_new(:ammo_type, fn -> [] end)
|
||||
|> assign_new(:range, fn -> [] end)
|
||||
|> assign_new(:container, fn -> [] end)
|
||||
|> assign_new(:actions, fn -> [] end)
|
||||
|> display_ammo_groups()
|
||||
|
||||
{:ok, socket}
|
||||
end
|
||||
|
||||
defp display_ammo_groups(
|
||||
%{
|
||||
assigns: %{
|
||||
ammo_groups: ammo_groups,
|
||||
current_user: current_user,
|
||||
show_used: show_used,
|
||||
ammo_type: ammo_type,
|
||||
range: range,
|
||||
container: container,
|
||||
actions: actions
|
||||
}
|
||||
} = socket
|
||||
) do
|
||||
columns =
|
||||
if actions == [] do
|
||||
[]
|
||||
else
|
||||
[%{label: nil, key: :actions, sortable: false}]
|
||||
end
|
||||
|
||||
columns =
|
||||
if show_used do
|
||||
[%{label: gettext("Used up on"), key: :used_up_on} | columns]
|
||||
else
|
||||
columns
|
||||
end
|
||||
|
||||
columns = [%{label: gettext("Added on"), key: :added_on} | columns]
|
||||
|
||||
columns =
|
||||
if container == [] do
|
||||
columns
|
||||
else
|
||||
[%{label: gettext("Container"), key: :container} | columns]
|
||||
end
|
||||
|
||||
columns =
|
||||
if range == [] do
|
||||
columns
|
||||
else
|
||||
[%{label: gettext("Range"), key: :range} | columns]
|
||||
end
|
||||
|
||||
columns = [
|
||||
%{label: gettext("Count"), key: :count},
|
||||
%{label: gettext("Original Count"), key: :original_count},
|
||||
%{label: gettext("Price paid"), key: :price_paid},
|
||||
%{label: gettext("CPR"), key: :cpr},
|
||||
%{label: gettext("% left"), key: :remaining},
|
||||
%{label: gettext("Notes"), key: :notes}
|
||||
| columns
|
||||
]
|
||||
|
||||
columns =
|
||||
if ammo_type == [] do
|
||||
columns
|
||||
else
|
||||
[%{label: gettext("Ammo type"), key: :ammo_type} | columns]
|
||||
end
|
||||
|
||||
rows =
|
||||
ammo_groups
|
||||
|> Repo.preload([:ammo_type, :container])
|
||||
|> Enum.map(fn ammo_group ->
|
||||
ammo_group
|
||||
|> get_row_data_for_ammo_group(%{
|
||||
current_user: current_user,
|
||||
ammo_type: ammo_type,
|
||||
columns: columns,
|
||||
container: container,
|
||||
actions: actions,
|
||||
range: range
|
||||
})
|
||||
end)
|
||||
|
||||
socket |> assign(columns: columns, rows: rows)
|
||||
end
|
||||
|
||||
@impl true
|
||||
def render(assigns) do
|
||||
~H"""
|
||||
<div class="w-full">
|
||||
<.live_component
|
||||
module={CanneryWeb.Components.TableComponent}
|
||||
id={@id}
|
||||
columns={@columns}
|
||||
rows={@rows}
|
||||
/>
|
||||
</div>
|
||||
"""
|
||||
end
|
||||
|
||||
@spec get_row_data_for_ammo_group(AmmoGroup.t(), additional_data :: map()) :: map()
|
||||
defp get_row_data_for_ammo_group(ammo_group, %{columns: columns} = additional_data) do
|
||||
ammo_group = ammo_group |> Repo.preload([:ammo_type, :container])
|
||||
|
||||
columns
|
||||
|> Map.new(fn %{key: key} ->
|
||||
{key, get_value_for_key(key, ammo_group, additional_data)}
|
||||
end)
|
||||
end
|
||||
|
||||
@spec get_value_for_key(atom(), AmmoGroup.t(), additional_data :: map()) ::
|
||||
any() | {any(), Rendered.t()}
|
||||
defp get_value_for_key(
|
||||
:ammo_type,
|
||||
%{ammo_type: %{name: ammo_type_name} = ammo_type},
|
||||
%{ammo_type: ammo_type_block}
|
||||
) do
|
||||
assigns = %{ammo_type: ammo_type, ammo_type_block: ammo_type_block}
|
||||
|
||||
{ammo_type_name,
|
||||
~H"""
|
||||
<%= render_slot(@ammo_type_block, @ammo_type) %>
|
||||
"""}
|
||||
end
|
||||
|
||||
defp get_value_for_key(:price_paid, %{price_paid: nil}, _additional_data), do: {"", nil}
|
||||
|
||||
defp get_value_for_key(:price_paid, %{price_paid: price_paid}, _additional_data),
|
||||
do: gettext("$%{amount}", amount: price_paid |> :erlang.float_to_binary(decimals: 2))
|
||||
|
||||
defp get_value_for_key(:added_on, %{inserted_at: inserted_at}, _additional_data) do
|
||||
assigns = %{inserted_at: inserted_at}
|
||||
|
||||
{inserted_at,
|
||||
~H"""
|
||||
<%= @inserted_at |> display_datetime() %>
|
||||
"""}
|
||||
end
|
||||
|
||||
defp get_value_for_key(:used_up_on, ammo_group, _additional_data) do
|
||||
last_shot_group_date =
|
||||
case ammo_group |> Ammo.get_last_used_shot_group() do
|
||||
%{date: last_shot_group_date} -> last_shot_group_date
|
||||
_no_shot_groups -> nil
|
||||
end
|
||||
|
||||
assigns = %{last_shot_group_date: last_shot_group_date}
|
||||
|
||||
{last_shot_group_date,
|
||||
~H"""
|
||||
<%= @last_shot_group_date |> display_date() %>
|
||||
"""}
|
||||
end
|
||||
|
||||
defp get_value_for_key(:range, %{staged: staged} = ammo_group, %{range: range}) do
|
||||
assigns = %{range: range, ammo_group: ammo_group}
|
||||
|
||||
{staged,
|
||||
~H"""
|
||||
<%= render_slot(@range, @ammo_group) %>
|
||||
"""}
|
||||
end
|
||||
|
||||
defp get_value_for_key(:remaining, ammo_group, _additional_data),
|
||||
do: gettext("%{percentage}%", percentage: ammo_group |> Ammo.get_percentage_remaining())
|
||||
|
||||
defp get_value_for_key(:actions, ammo_group, %{actions: actions}) do
|
||||
assigns = %{actions: actions, ammo_group: ammo_group}
|
||||
|
||||
~H"""
|
||||
<%= render_slot(@actions, @ammo_group) %>
|
||||
"""
|
||||
end
|
||||
|
||||
defp get_value_for_key(:container, %{container: nil}, _additional_data), do: {nil, nil}
|
||||
|
||||
defp get_value_for_key(
|
||||
:container,
|
||||
%{container: %{name: container_name}} = ammo_group,
|
||||
%{container: container}
|
||||
) do
|
||||
assigns = %{container: container, ammo_group: ammo_group}
|
||||
|
||||
{container_name,
|
||||
~H"""
|
||||
<%= render_slot(@container, @ammo_group) %>
|
||||
"""}
|
||||
end
|
||||
|
||||
defp get_value_for_key(:original_count, ammo_group, _additional_data),
|
||||
do: ammo_group |> Ammo.get_original_count()
|
||||
|
||||
defp get_value_for_key(:cpr, %{price_paid: nil}, _additional_data),
|
||||
do: gettext("No cost information")
|
||||
|
||||
defp get_value_for_key(:cpr, ammo_group, _additional_data) do
|
||||
gettext("$%{amount}",
|
||||
amount: ammo_group |> Ammo.get_cpr() |> :erlang.float_to_binary(decimals: 2)
|
||||
)
|
||||
end
|
||||
|
||||
defp get_value_for_key(:count, %{count: count}, _additional_data),
|
||||
do: if(count == 0, do: gettext("Empty"), else: count)
|
||||
|
||||
defp get_value_for_key(key, ammo_group, _additional_data), do: ammo_group |> Map.get(key)
|
||||
end
|
@ -37,10 +37,8 @@ defmodule CanneryWeb.Components.InviteCard do
|
||||
<code
|
||||
id={"code-#{@invite.id}"}
|
||||
class="mx-2 my-1 text-xs px-4 py-2 rounded-lg text-center break-all text-gray-100 bg-primary-800"
|
||||
>
|
||||
<%= Routes.user_registration_url(Endpoint, :new, invite: @invite.token) %>
|
||||
</code>
|
||||
|
||||
phx-no-format
|
||||
><%= Routes.user_registration_url(Endpoint, :new, invite: @invite.token) %></code>
|
||||
<%= render_slot(@code_actions) %>
|
||||
</div>
|
||||
|
||||
|
@ -22,7 +22,7 @@ defmodule CanneryWeb.Components.MoveAmmoGroupComponent do
|
||||
assigns,
|
||||
socket
|
||||
) do
|
||||
changeset = ammo_group |> AmmoGroup.update_changeset(%{})
|
||||
changeset = ammo_group |> AmmoGroup.update_changeset(%{}, current_user)
|
||||
|
||||
containers =
|
||||
Containers.list_containers(current_user)
|
||||
@ -86,7 +86,7 @@ defmodule CanneryWeb.Components.MoveAmmoGroupComponent do
|
||||
<%= display_emoji("😔") %>
|
||||
</h2>
|
||||
|
||||
<.link patch={Routes.container_index_path(Endpoint, :new)} class="btn btn-primary">
|
||||
<.link navigate={Routes.container_index_path(Endpoint, :new)} class="btn btn-primary">
|
||||
<%= dgettext("actions", "Add another container!") %>
|
||||
</.link>
|
||||
<% else %>
|
||||
@ -106,7 +106,7 @@ defmodule CanneryWeb.Components.MoveAmmoGroupComponent do
|
||||
containers
|
||||
|> Enum.map(fn container ->
|
||||
columns
|
||||
|> Enum.into(%{}, fn %{key: key} -> {key, get_row_value_by_key(key, container, assigns)} end)
|
||||
|> Map.new(fn %{key: key} -> {key, get_row_value_by_key(key, container, assigns)} end)
|
||||
end)
|
||||
end
|
||||
|
||||
|
@ -21,6 +21,7 @@ defmodule CanneryWeb.Components.TableComponent do
|
||||
|
||||
use CanneryWeb, :live_component
|
||||
alias Phoenix.LiveView.Socket
|
||||
require Integer
|
||||
|
||||
@impl true
|
||||
@spec update(
|
||||
@ -30,6 +31,8 @@ defmodule CanneryWeb.Components.TableComponent do
|
||||
required(:label) => String.t() | nil,
|
||||
required(:key) => atom() | nil,
|
||||
optional(:class) => String.t(),
|
||||
optional(:row_class) => String.t(),
|
||||
optional(:alternate_row_class) => String.t(),
|
||||
optional(:sortable) => false
|
||||
}),
|
||||
required(:rows) =>
|
||||
@ -47,7 +50,7 @@ defmodule CanneryWeb.Components.TableComponent do
|
||||
if assigns |> Map.has_key?(:initial_key) do
|
||||
assigns.initial_key
|
||||
else
|
||||
columns |> List.first() |> Map.get(:key)
|
||||
columns |> List.first(%{}) |> Map.get(:key)
|
||||
end
|
||||
|
||||
initial_sort_mode =
|
||||
@ -57,7 +60,7 @@ defmodule CanneryWeb.Components.TableComponent do
|
||||
:asc
|
||||
end
|
||||
|
||||
rows = rows |> Enum.sort_by(fn row -> row |> Map.get(initial_key) end, initial_sort_mode)
|
||||
rows = rows |> sort_by_custom_sort_value_or_value(initial_key, initial_sort_mode)
|
||||
|
||||
socket =
|
||||
socket
|
||||
@ -68,6 +71,8 @@ defmodule CanneryWeb.Components.TableComponent do
|
||||
last_sort_key: initial_key,
|
||||
sort_mode: initial_sort_mode
|
||||
)
|
||||
|> assign_new(:row_class, fn -> "bg-white" end)
|
||||
|> assign_new(:alternate_row_class, fn -> "bg-gray-200" end)
|
||||
|
||||
{:ok, socket}
|
||||
end
|
||||
|
@ -6,7 +6,7 @@
|
||||
<%= if column |> Map.get(:sortable, true) do %>
|
||||
<th class={"p-2 #{column[:class]}"}>
|
||||
<span
|
||||
class="cursor-pointer"
|
||||
class="cursor-pointer flex justify-center items-center space-x-2"
|
||||
phx-click="sort_by"
|
||||
phx-value-sort-key={key}
|
||||
phx-target={@myself}
|
||||
@ -33,8 +33,8 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<%= for values <- @rows do %>
|
||||
<tr>
|
||||
<%= for {values, i} <- @rows |> Enum.with_index() do %>
|
||||
<tr class={if i |> Integer.is_even(), do: @row_class, else: @alternate_row_class}>
|
||||
<%= for %{key: key} = value <- @columns do %>
|
||||
<td class={"p-2 #{value[:class]}"}>
|
||||
<%= case values |> Map.get(key) do %>
|
||||
|
@ -17,7 +17,7 @@ defmodule CanneryWeb.Components.Topbar do
|
||||
<div class="flex flex-col sm:flex-row justify-between items-center">
|
||||
<div class="mb-4 sm:mb-0 sm:mr-8 flex flex-row justify-start items-center space-x-2">
|
||||
<.link
|
||||
patch={Routes.live_path(Endpoint, HomeLive)}
|
||||
navigate={Routes.live_path(Endpoint, HomeLive)}
|
||||
class="inline mx-2 my-1 leading-5 text-xl text-white"
|
||||
>
|
||||
<img
|
||||
@ -43,7 +43,7 @@ defmodule CanneryWeb.Components.Topbar do
|
||||
<%= if @current_user do %>
|
||||
<li class="mx-2 my-1">
|
||||
<.link
|
||||
patch={Routes.tag_index_path(Endpoint, :index)}
|
||||
navigate={Routes.tag_index_path(Endpoint, :index)}
|
||||
class="text-primary-600 text-white hover:underline"
|
||||
>
|
||||
<%= gettext("Tags") %>
|
||||
@ -51,7 +51,7 @@ defmodule CanneryWeb.Components.Topbar do
|
||||
</li>
|
||||
<li class="mx-2 my-1">
|
||||
<.link
|
||||
patch={Routes.container_index_path(Endpoint, :index)}
|
||||
navigate={Routes.container_index_path(Endpoint, :index)}
|
||||
class="text-primary-600 text-white hover:underline"
|
||||
>
|
||||
<%= gettext("Containers") %>
|
||||
@ -59,7 +59,7 @@ defmodule CanneryWeb.Components.Topbar do
|
||||
</li>
|
||||
<li class="mx-2 my-1">
|
||||
<.link
|
||||
patch={Routes.ammo_type_index_path(Endpoint, :index)}
|
||||
navigate={Routes.ammo_type_index_path(Endpoint, :index)}
|
||||
class="text-primary-600 text-white hover:underline"
|
||||
>
|
||||
<%= gettext("Catalog") %>
|
||||
@ -67,7 +67,7 @@ defmodule CanneryWeb.Components.Topbar do
|
||||
</li>
|
||||
<li class="mx-2 my-1">
|
||||
<.link
|
||||
patch={Routes.ammo_group_index_path(Endpoint, :index)}
|
||||
navigate={Routes.ammo_group_index_path(Endpoint, :index)}
|
||||
class="text-primary-600 text-white hover:underline"
|
||||
>
|
||||
<%= gettext("Ammo") %>
|
||||
@ -75,7 +75,7 @@ defmodule CanneryWeb.Components.Topbar do
|
||||
</li>
|
||||
<li class="mx-2 my-1">
|
||||
<.link
|
||||
patch={Routes.range_index_path(Endpoint, :index)}
|
||||
navigate={Routes.range_index_path(Endpoint, :index)}
|
||||
class="text-primary-600 text-white hover:underline"
|
||||
>
|
||||
<%= gettext("Range") %>
|
||||
@ -84,7 +84,7 @@ defmodule CanneryWeb.Components.Topbar do
|
||||
<%= if @current_user.role == :admin do %>
|
||||
<li class="mx-2 my-1">
|
||||
<.link
|
||||
patch={Routes.invite_index_path(Endpoint, :index)}
|
||||
navigate={Routes.invite_index_path(Endpoint, :index)}
|
||||
class="text-primary-600 text-white hover:underline"
|
||||
>
|
||||
<%= gettext("Invites") %>
|
||||
@ -93,7 +93,7 @@ defmodule CanneryWeb.Components.Topbar do
|
||||
<% end %>
|
||||
<li class="mx-2 my-1">
|
||||
<.link
|
||||
patch={Routes.user_settings_path(Endpoint, :edit)}
|
||||
navigate={Routes.user_settings_path(Endpoint, :edit)}
|
||||
class="text-primary-600 text-white hover:underline truncate"
|
||||
>
|
||||
<%= @current_user.email %>
|
||||
@ -111,7 +111,7 @@ defmodule CanneryWeb.Components.Topbar do
|
||||
<%= if @current_user.role == :admin and function_exported?(Routes, :live_dashboard_path, 2) do %>
|
||||
<li class="mx-2 my-1">
|
||||
<.link
|
||||
patch={Routes.live_dashboard_path(Endpoint, :home)}
|
||||
navigate={Routes.live_dashboard_path(Endpoint, :home)}
|
||||
class="text-primary-600 text-white hover:underline"
|
||||
>
|
||||
<i class="fas fa-gauge"></i>
|
||||
@ -122,7 +122,7 @@ defmodule CanneryWeb.Components.Topbar do
|
||||
<%= if Accounts.allow_registration?() do %>
|
||||
<li class="mx-2 my-1">
|
||||
<.link
|
||||
patch={Routes.user_registration_path(Endpoint, :new)}
|
||||
navigate={Routes.user_registration_path(Endpoint, :new)}
|
||||
class="text-primary-600 text-white hover:underline truncate"
|
||||
>
|
||||
<%= dgettext("actions", "Register") %>
|
||||
@ -131,7 +131,7 @@ defmodule CanneryWeb.Components.Topbar do
|
||||
<% end %>
|
||||
<li class="mx-2 my-1">
|
||||
<.link
|
||||
patch={Routes.user_session_path(Endpoint, :new)}
|
||||
navigate={Routes.user_session_path(Endpoint, :new)}
|
||||
class="text-primary-600 text-white hover:underline truncate"
|
||||
>
|
||||
<%= dgettext("actions", "Log in") %>
|
||||
|
69
lib/cannery_web/controllers/export_controller.ex
Normal file
69
lib/cannery_web/controllers/export_controller.ex
Normal file
@ -0,0 +1,69 @@
|
||||
defmodule CanneryWeb.ExportController do
|
||||
use CanneryWeb, :controller
|
||||
alias Cannery.{ActivityLog, Ammo, Containers}
|
||||
|
||||
def export(%{assigns: %{current_user: current_user}} = conn, %{"mode" => "json"}) do
|
||||
ammo_types =
|
||||
Ammo.list_ammo_types(current_user)
|
||||
|> Enum.map(fn ammo_type ->
|
||||
average_cost = ammo_type |> Ammo.get_average_cost_for_ammo_type!(current_user)
|
||||
round_count = ammo_type |> Ammo.get_round_count_for_ammo_type(current_user)
|
||||
used_count = ammo_type |> Ammo.get_used_count_for_ammo_type(current_user)
|
||||
ammo_group_count = ammo_type |> Ammo.get_ammo_groups_count_for_type(current_user, true)
|
||||
|
||||
ammo_type
|
||||
|> Jason.encode!()
|
||||
|> Jason.decode!()
|
||||
|> Map.merge(%{
|
||||
"average_cost" => average_cost,
|
||||
"round_count" => round_count,
|
||||
"used_count" => used_count,
|
||||
"ammo_group_count" => ammo_group_count
|
||||
})
|
||||
end)
|
||||
|
||||
ammo_groups =
|
||||
Ammo.list_ammo_groups(current_user, true)
|
||||
|> Enum.map(fn ammo_group ->
|
||||
cpr = ammo_group |> Ammo.get_cpr()
|
||||
used_count = ammo_group |> Ammo.get_used_count()
|
||||
original_count = ammo_group |> Ammo.get_original_count()
|
||||
percentage_remaining = ammo_group |> Ammo.get_percentage_remaining()
|
||||
|
||||
ammo_group
|
||||
|> Jason.encode!()
|
||||
|> Jason.decode!()
|
||||
|> Map.merge(%{
|
||||
"used_count" => used_count,
|
||||
"percentage_remaining" => percentage_remaining,
|
||||
"original_count" => original_count,
|
||||
"cpr" => cpr
|
||||
})
|
||||
end)
|
||||
|
||||
shot_groups = ActivityLog.list_shot_groups(current_user)
|
||||
|
||||
containers =
|
||||
Containers.list_containers(current_user)
|
||||
|> Enum.map(fn container ->
|
||||
ammo_group_count = container |> Containers.get_container_ammo_group_count!()
|
||||
round_count = container |> Containers.get_container_rounds!()
|
||||
|
||||
container
|
||||
|> Jason.encode!()
|
||||
|> Jason.decode!()
|
||||
|> Map.merge(%{
|
||||
"ammo_group_count" => ammo_group_count,
|
||||
"round_count" => round_count
|
||||
})
|
||||
end)
|
||||
|
||||
json(conn, %{
|
||||
user: current_user,
|
||||
ammo_types: ammo_types,
|
||||
ammo_groups: ammo_groups,
|
||||
shot_groups: shot_groups,
|
||||
containers: containers
|
||||
})
|
||||
end
|
||||
end
|
@ -73,14 +73,14 @@ defmodule CanneryWeb.AmmoGroupLive.FormComponent do
|
||||
ammo_group_params
|
||||
) do
|
||||
changeset_action =
|
||||
case action do
|
||||
:new -> :insert
|
||||
:edit -> :update
|
||||
cond do
|
||||
action in [:new, :clone] -> :insert
|
||||
action == :edit -> :update
|
||||
end
|
||||
|
||||
changeset =
|
||||
case action do
|
||||
:new ->
|
||||
cond do
|
||||
action in [:new, :clone] ->
|
||||
ammo_type =
|
||||
if ammo_group_params |> Map.has_key?("ammo_type_id"),
|
||||
do: ammo_group_params |> Map.get("ammo_type_id") |> Ammo.get_ammo_type!(user),
|
||||
@ -93,8 +93,8 @@ defmodule CanneryWeb.AmmoGroupLive.FormComponent do
|
||||
|
||||
ammo_group |> AmmoGroup.create_changeset(ammo_type, container, user, ammo_group_params)
|
||||
|
||||
:edit ->
|
||||
ammo_group |> AmmoGroup.update_changeset(ammo_group_params)
|
||||
action == :edit ->
|
||||
ammo_group |> AmmoGroup.update_changeset(ammo_group_params, user)
|
||||
end
|
||||
|
||||
changeset =
|
||||
@ -127,9 +127,10 @@ defmodule CanneryWeb.AmmoGroupLive.FormComponent do
|
||||
|
||||
defp save_ammo_group(
|
||||
%{assigns: %{changeset: changeset}} = socket,
|
||||
:new,
|
||||
action,
|
||||
%{"multiplier" => multiplier_str} = ammo_group_params
|
||||
) do
|
||||
)
|
||||
when action in [:new, :clone] do
|
||||
socket =
|
||||
case multiplier_str |> Integer.parse() do
|
||||
{multiplier, _remainder}
|
||||
|
@ -51,8 +51,8 @@
|
||||
) %>
|
||||
<%= error_tag(f, :container_id, "col-span-3 text-center") %>
|
||||
|
||||
<%= case @action do %>
|
||||
<% :new -> %>
|
||||
<%= cond do %>
|
||||
<% @action in [:new, :clone] -> %>
|
||||
<hr class="hr col-span-3" />
|
||||
|
||||
<%= label(f, :multiplier, gettext("Copies"), class: "title text-lg text-primary-600") %>
|
||||
@ -69,7 +69,7 @@
|
||||
) %>
|
||||
|
||||
<%= error_tag(f, :multiplier, "col-span-3 text-center") %>
|
||||
<% :edit -> %>
|
||||
<% @action == :edit -> %>
|
||||
<%= submit(dgettext("actions", "Save"),
|
||||
phx_disable_with: dgettext("prompts", "Saving..."),
|
||||
class: "mx-auto col-span-3 btn btn-primary"
|
||||
|
@ -9,12 +9,12 @@ defmodule CanneryWeb.AmmoGroupLive.Index do
|
||||
|
||||
@impl true
|
||||
def mount(_params, _session, socket) do
|
||||
{:ok, socket |> assign(show_used: false) |> display_ammo_groups()}
|
||||
{:ok, socket |> assign(show_used: false)}
|
||||
end
|
||||
|
||||
@impl true
|
||||
def handle_params(params, _url, %{assigns: %{live_action: live_action}} = socket) do
|
||||
{:noreply, apply_action(socket, live_action, params)}
|
||||
{:noreply, apply_action(socket, live_action, params) |> display_ammo_groups()}
|
||||
end
|
||||
|
||||
defp apply_action(
|
||||
@ -39,6 +39,12 @@ defmodule CanneryWeb.AmmoGroupLive.Index do
|
||||
|> assign(:ammo_group, Ammo.get_ammo_group!(id, current_user))
|
||||
end
|
||||
|
||||
defp apply_action(%{assigns: %{current_user: current_user}} = socket, :clone, %{"id" => id}) do
|
||||
socket
|
||||
|> assign(:page_title, dgettext("actions", "Add Ammo"))
|
||||
|> assign(:ammo_group, %{Ammo.get_ammo_group!(id, current_user) | id: nil})
|
||||
end
|
||||
|
||||
defp apply_action(socket, :new, _params) do
|
||||
socket
|
||||
|> assign(:page_title, dgettext("actions", "Add Ammo"))
|
||||
@ -46,7 +52,9 @@ defmodule CanneryWeb.AmmoGroupLive.Index do
|
||||
end
|
||||
|
||||
defp apply_action(socket, :index, _params) do
|
||||
socket |> assign(:page_title, gettext("Ammo groups")) |> assign(:ammo_group, nil)
|
||||
socket
|
||||
|> assign(:page_title, gettext("Ammo groups"))
|
||||
|> assign(:ammo_group, nil)
|
||||
end
|
||||
|
||||
@impl true
|
||||
@ -81,180 +89,17 @@ defmodule CanneryWeb.AmmoGroupLive.Index do
|
||||
%{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.list_ammo_groups(current_user, show_used)
|
||||
|> Repo.preload([:ammo_type, :container], force: true)
|
||||
|
||||
ammo_types_count = Ammo.get_ammo_types_count!(current_user)
|
||||
containers_count = Containers.get_containers_count!(current_user)
|
||||
|
||||
columns = [
|
||||
%{label: gettext("Ammo type"), key: :ammo_type},
|
||||
%{label: gettext("Count"), key: :count},
|
||||
%{label: gettext("Price paid"), key: :price_paid},
|
||||
%{label: gettext("% left"), key: :remaining},
|
||||
%{label: gettext("Range"), key: :range},
|
||||
%{label: gettext("Container"), key: :container},
|
||||
%{label: gettext("Added on"), key: :added_on}
|
||||
]
|
||||
|
||||
columns =
|
||||
if show_used do
|
||||
columns ++ [%{label: gettext("Used up on"), key: :used_up_on}]
|
||||
else
|
||||
columns
|
||||
end
|
||||
|
||||
columns = columns ++ [%{label: nil, key: :actions, sortable: false}]
|
||||
|
||||
rows =
|
||||
ammo_groups
|
||||
|> Enum.map(fn ammo_group -> ammo_group |> get_row_data_for_ammo_group(columns) end)
|
||||
|
||||
socket
|
||||
|> assign(
|
||||
ammo_groups: ammo_groups,
|
||||
ammo_types_count: ammo_types_count,
|
||||
containers_count: containers_count,
|
||||
columns: columns,
|
||||
rows: rows
|
||||
containers_count: containers_count
|
||||
)
|
||||
end
|
||||
|
||||
@spec get_row_data_for_ammo_group(AmmoGroup.t(), [map()]) :: [map()]
|
||||
defp get_row_data_for_ammo_group(ammo_group, columns) do
|
||||
ammo_group = ammo_group |> Repo.preload([:ammo_type, :container])
|
||||
|
||||
columns
|
||||
|> Enum.into(%{}, fn %{key: key} -> {key, get_value_for_key(key, ammo_group)} end)
|
||||
end
|
||||
|
||||
@spec get_value_for_key(atom(), AmmoGroup.t()) :: any()
|
||||
defp get_value_for_key(:ammo_type, %{ammo_type: ammo_type}) do
|
||||
assigns = %{ammo_type: ammo_type}
|
||||
|
||||
{ammo_type.name,
|
||||
~H"""
|
||||
<.link patch={Routes.ammo_type_show_path(Endpoint, :show, @ammo_type)} class="link">
|
||||
<%= @ammo_type.name %>
|
||||
</.link>
|
||||
"""}
|
||||
end
|
||||
|
||||
defp get_value_for_key(:price_paid, %{price_paid: nil}), do: {"a", nil}
|
||||
|
||||
defp get_value_for_key(:price_paid, %{price_paid: price_paid}),
|
||||
do: gettext("$%{amount}", amount: price_paid |> :erlang.float_to_binary(decimals: 2))
|
||||
|
||||
defp get_value_for_key(:added_on, %{inserted_at: inserted_at}) do
|
||||
assigns = %{inserted_at: inserted_at}
|
||||
|
||||
{inserted_at,
|
||||
~H"""
|
||||
<%= @inserted_at |> display_datetime() %>
|
||||
"""}
|
||||
end
|
||||
|
||||
defp get_value_for_key(:used_up_on, ammo_group) do
|
||||
last_shot_group_date =
|
||||
case ammo_group |> Ammo.get_last_used_shot_group() do
|
||||
%{date: last_shot_group_date} -> last_shot_group_date
|
||||
_no_shot_groups -> nil
|
||||
end
|
||||
|
||||
assigns = %{last_shot_group_date: last_shot_group_date}
|
||||
|
||||
{last_shot_group_date,
|
||||
~H"""
|
||||
<%= @last_shot_group_date |> display_date() %>
|
||||
"""}
|
||||
end
|
||||
|
||||
defp get_value_for_key(:range, %{staged: staged} = ammo_group) do
|
||||
assigns = %{ammo_group: ammo_group}
|
||||
|
||||
{staged,
|
||||
~H"""
|
||||
<div class="min-w-20 py-2 px-4 h-full flex flew-wrap justify-center items-center">
|
||||
<button
|
||||
type="button"
|
||||
class="mx-2 my-1 text-sm btn btn-primary"
|
||||
phx-click="toggle_staged"
|
||||
phx-value-ammo_group_id={@ammo_group.id}
|
||||
>
|
||||
<%= if @ammo_group.staged, do: gettext("Unstage"), else: gettext("Stage") %>
|
||||
</button>
|
||||
|
||||
<.link
|
||||
patch={Routes.ammo_group_index_path(Endpoint, :add_shot_group, @ammo_group)}
|
||||
class="mx-2 my-1 text-sm btn btn-primary"
|
||||
>
|
||||
<%= dgettext("actions", "Record shots") %>
|
||||
</.link>
|
||||
</div>
|
||||
"""}
|
||||
end
|
||||
|
||||
defp get_value_for_key(:remaining, ammo_group),
|
||||
do: gettext("%{percentage}%", percentage: ammo_group |> Ammo.get_percentage_remaining())
|
||||
|
||||
defp get_value_for_key(:actions, ammo_group) do
|
||||
assigns = %{ammo_group: ammo_group}
|
||||
|
||||
~H"""
|
||||
<div class="py-2 px-4 h-full space-x-4 flex justify-center items-center">
|
||||
<.link
|
||||
patch={Routes.ammo_group_show_path(Endpoint, :show, @ammo_group)}
|
||||
class="text-primary-600 link"
|
||||
data-qa={"view-#{@ammo_group.id}"}
|
||||
>
|
||||
<i class="fa-fw fa-lg fas fa-eye"></i>
|
||||
</.link>
|
||||
|
||||
<.link
|
||||
patch={Routes.ammo_group_index_path(Endpoint, :edit, @ammo_group)}
|
||||
class="text-primary-600 link"
|
||||
data-qa={"edit-#{@ammo_group.id}"}
|
||||
>
|
||||
<i class="fa-fw fa-lg fas fa-edit"></i>
|
||||
</.link>
|
||||
|
||||
<.link
|
||||
href="#"
|
||||
class="text-primary-600 link"
|
||||
phx-click="delete"
|
||||
phx-value-id={@ammo_group.id}
|
||||
data-confirm={dgettext("prompts", "Are you sure you want to delete this ammo?")}
|
||||
data-qa={"delete-#{@ammo_group.id}"}
|
||||
>
|
||||
<i class="fa-fw fa-lg fas fa-trash"></i>
|
||||
</.link>
|
||||
</div>
|
||||
"""
|
||||
end
|
||||
|
||||
defp get_value_for_key(:container, %{container: nil}), do: {nil, nil}
|
||||
|
||||
defp get_value_for_key(:container, %{container: %{name: container_name}} = ammo_group) do
|
||||
assigns = %{ammo_group: ammo_group}
|
||||
|
||||
{container_name,
|
||||
~H"""
|
||||
<div class="min-w-20 py-2 px-4 h-full flex flew-wrap justify-center items-center">
|
||||
<.link
|
||||
patch={Routes.container_show_path(Endpoint, :show, @ammo_group.container)}
|
||||
class="mx-2 my-1 link"
|
||||
>
|
||||
<%= @ammo_group.container.name %>
|
||||
</.link>
|
||||
|
||||
<.link
|
||||
patch={Routes.ammo_group_index_path(Endpoint, :move, @ammo_group)}
|
||||
class="mx-2 my-1 text-sm btn btn-primary"
|
||||
>
|
||||
<%= gettext("Move ammo") %>
|
||||
</.link>
|
||||
</div>
|
||||
"""}
|
||||
end
|
||||
|
||||
defp get_value_for_key(key, ammo_group), do: ammo_group |> Map.get(key)
|
||||
end
|
||||
|
@ -17,7 +17,7 @@
|
||||
<%= dgettext("prompts", "You'll need to") %>
|
||||
</h2>
|
||||
|
||||
<.link patch={Routes.container_index_path(Endpoint, :new)} class="btn btn-primary">
|
||||
<.link navigate={Routes.container_index_path(Endpoint, :new)} class="btn btn-primary">
|
||||
<%= dgettext("actions", "add a container first") %>
|
||||
</.link>
|
||||
</div>
|
||||
@ -27,7 +27,7 @@
|
||||
<%= dgettext("prompts", "You'll need to") %>
|
||||
</h2>
|
||||
|
||||
<.link patch={Routes.ammo_type_index_path(Endpoint, :new)} class="btn btn-primary">
|
||||
<.link navigate={Routes.ammo_type_index_path(Endpoint, :new)} class="btn btn-primary">
|
||||
<%= dgettext("actions", "add an ammo type first") %>
|
||||
</.link>
|
||||
</div>
|
||||
@ -42,7 +42,7 @@
|
||||
<% end %>
|
||||
|
||||
<%= unless @ammo_groups |> Enum.empty?() do %>
|
||||
<div class="flex flex-col justify-center items-center">
|
||||
<div class="flex flex-col space-y-4 justify-center items-center">
|
||||
<.toggle_button action="toggle_show_used" value={@show_used}>
|
||||
<span class="title text-lg text-primary-600">
|
||||
<%= gettext("Show used") %>
|
||||
@ -51,17 +51,97 @@
|
||||
</div>
|
||||
|
||||
<.live_component
|
||||
module={CanneryWeb.Components.TableComponent}
|
||||
id="ammo_groups_index_table"
|
||||
action={@live_action}
|
||||
columns={@columns}
|
||||
rows={@rows}
|
||||
/>
|
||||
module={CanneryWeb.Components.AmmoGroupTableComponent}
|
||||
id="ammo-group-index-table"
|
||||
ammo_groups={@ammo_groups}
|
||||
current_user={@current_user}
|
||||
show_used={@show_used}
|
||||
>
|
||||
<:ammo_type :let={%{name: ammo_type_name} = ammo_type}>
|
||||
<.link navigate={Routes.ammo_type_show_path(Endpoint, :show, ammo_type)} class="link">
|
||||
<%= ammo_type_name %>
|
||||
</.link>
|
||||
</:ammo_type>
|
||||
<:range :let={ammo_group}>
|
||||
<div class="min-w-20 py-2 px-4 h-full flex flew-wrap justify-center items-center">
|
||||
<button
|
||||
type="button"
|
||||
class="mx-2 my-1 text-sm btn btn-primary"
|
||||
phx-click="toggle_staged"
|
||||
phx-value-ammo_group_id={ammo_group.id}
|
||||
>
|
||||
<%= if ammo_group.staged, do: gettext("Unstage"), else: gettext("Stage") %>
|
||||
</button>
|
||||
|
||||
<.link
|
||||
patch={Routes.ammo_group_index_path(Endpoint, :add_shot_group, ammo_group)}
|
||||
class="mx-2 my-1 text-sm btn btn-primary"
|
||||
>
|
||||
<%= dgettext("actions", "Record shots") %>
|
||||
</.link>
|
||||
</div>
|
||||
</:range>
|
||||
<:container :let={%{container: %{name: container_name} = container} = ammo_group}>
|
||||
<div class="min-w-20 py-2 px-4 h-full flex flew-wrap justify-center items-center">
|
||||
<.link
|
||||
navigate={Routes.container_show_path(Endpoint, :show, container)}
|
||||
class="mx-2 my-1 link"
|
||||
>
|
||||
<%= container_name %>
|
||||
</.link>
|
||||
|
||||
<.link
|
||||
patch={Routes.ammo_group_index_path(Endpoint, :move, ammo_group)}
|
||||
class="mx-2 my-1 text-sm btn btn-primary"
|
||||
>
|
||||
<%= gettext("Move ammo") %>
|
||||
</.link>
|
||||
</div>
|
||||
</:container>
|
||||
<:actions :let={ammo_group}>
|
||||
<div class="py-2 px-4 h-full space-x-4 flex justify-center items-center">
|
||||
<.link
|
||||
navigate={Routes.ammo_group_show_path(Endpoint, :show, ammo_group)}
|
||||
class="text-primary-600 link"
|
||||
data-qa={"view-#{ammo_group.id}"}
|
||||
>
|
||||
<i class="fa-fw fa-lg fas fa-eye"></i>
|
||||
</.link>
|
||||
|
||||
<.link
|
||||
patch={Routes.ammo_group_index_path(Endpoint, :edit, ammo_group)}
|
||||
class="text-primary-600 link"
|
||||
data-qa={"edit-#{ammo_group.id}"}
|
||||
>
|
||||
<i class="fa-fw fa-lg fas fa-edit"></i>
|
||||
</.link>
|
||||
|
||||
<.link
|
||||
patch={Routes.ammo_group_index_path(Endpoint, :clone, ammo_group)}
|
||||
class="text-primary-600 link"
|
||||
data-qa={"clone-#{ammo_group.id}"}
|
||||
>
|
||||
<i class="fa-fw fa-lg fas fa-copy"></i>
|
||||
</.link>
|
||||
|
||||
<.link
|
||||
href="#"
|
||||
class="text-primary-600 link"
|
||||
phx-click="delete"
|
||||
phx-value-id={ammo_group.id}
|
||||
data-confirm={dgettext("prompts", "Are you sure you want to delete this ammo?")}
|
||||
data-qa={"delete-#{ammo_group.id}"}
|
||||
>
|
||||
<i class="fa-fw fa-lg fas fa-trash"></i>
|
||||
</.link>
|
||||
</div>
|
||||
</:actions>
|
||||
</.live_component>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<%= cond do %>
|
||||
<% @live_action in [:new, :edit] -> %>
|
||||
<% @live_action in [:new, :edit, :clone] -> %>
|
||||
<.modal return_to={Routes.ammo_group_index_path(Endpoint, :index)}>
|
||||
<.live_component
|
||||
module={CanneryWeb.AmmoGroupLive.FormComponent}
|
||||
|
@ -102,12 +102,12 @@ defmodule CanneryWeb.AmmoGroupLive.Show do
|
||||
defp display_ammo_group(%{assigns: %{current_user: current_user}} = socket, id),
|
||||
do: display_ammo_group(socket, Ammo.get_ammo_group!(id, current_user))
|
||||
|
||||
@spec get_table_row_for_shot_group(AmmoGroup.t(), ShotGroup.t(), [map()]) :: [map()]
|
||||
@spec get_table_row_for_shot_group(AmmoGroup.t(), ShotGroup.t(), [map()]) :: map()
|
||||
defp get_table_row_for_shot_group(ammo_group, %{date: date} = shot_group, columns) do
|
||||
assigns = %{ammo_group: ammo_group, shot_group: shot_group}
|
||||
|
||||
columns
|
||||
|> Enum.into(%{}, fn %{key: key} ->
|
||||
|> Map.new(fn %{key: key} ->
|
||||
value =
|
||||
case key do
|
||||
:date ->
|
||||
|
@ -11,7 +11,7 @@
|
||||
|
||||
<span class="rounded-lg title text-lg">
|
||||
<%= gettext("Original count:") %>
|
||||
<%= @ammo_group.count + Ammo.get_used_count(@ammo_group) %>
|
||||
<%= Ammo.get_original_count(@ammo_group) %>
|
||||
</span>
|
||||
|
||||
<span class="rounded-lg title text-lg">
|
||||
@ -53,7 +53,7 @@
|
||||
<div class="flex flex-col justify-center items-center">
|
||||
<div class="flex flex-wrap justify-center items-center text-primary-600">
|
||||
<.link
|
||||
patch={Routes.ammo_type_show_path(Endpoint, :show, @ammo_group.ammo_type)}
|
||||
navigate={Routes.ammo_type_show_path(Endpoint, :show, @ammo_group.ammo_type)}
|
||||
class="mx-4 my-2 btn btn-primary"
|
||||
data-qa="details"
|
||||
>
|
||||
|
@ -35,15 +35,15 @@ defmodule CanneryWeb.AmmoTypeLive.FormComponent do
|
||||
ammo_type_params
|
||||
) do
|
||||
changeset_action =
|
||||
case action do
|
||||
:new -> :insert
|
||||
:edit -> :update
|
||||
cond do
|
||||
action in [:new, :clone] -> :insert
|
||||
action == :edit -> :update
|
||||
end
|
||||
|
||||
changeset =
|
||||
case action do
|
||||
:new -> ammo_type |> AmmoType.create_changeset(user, ammo_type_params)
|
||||
:edit -> ammo_type |> AmmoType.update_changeset(ammo_type_params)
|
||||
cond do
|
||||
action in [:new, :clone] -> ammo_type |> AmmoType.create_changeset(user, ammo_type_params)
|
||||
action == :edit -> ammo_type |> AmmoType.update_changeset(ammo_type_params)
|
||||
end
|
||||
|
||||
changeset =
|
||||
@ -76,9 +76,10 @@ defmodule CanneryWeb.AmmoTypeLive.FormComponent do
|
||||
|
||||
defp save_ammo_type(
|
||||
%{assigns: %{current_user: current_user, return_to: return_to}} = socket,
|
||||
:new,
|
||||
action,
|
||||
ammo_type_params
|
||||
) do
|
||||
)
|
||||
when action in [:new, :clone] do
|
||||
socket =
|
||||
case Ammo.create_ammo_type(ammo_type_params, current_user) do
|
||||
{:ok, %{name: ammo_type_name}} ->
|
||||
|
@ -10,7 +10,7 @@ defmodule CanneryWeb.AmmoTypeLive.Index do
|
||||
|
||||
@impl true
|
||||
def mount(_params, _session, socket) do
|
||||
{:ok, socket |> list_ammo_types()}
|
||||
{:ok, socket |> assign(:show_used, false) |> list_ammo_types()}
|
||||
end
|
||||
|
||||
@impl true
|
||||
@ -24,6 +24,12 @@ defmodule CanneryWeb.AmmoTypeLive.Index do
|
||||
|> assign(:ammo_type, Ammo.get_ammo_type!(id, current_user))
|
||||
end
|
||||
|
||||
defp apply_action(%{assigns: %{current_user: current_user}} = socket, :clone, %{"id" => id}) do
|
||||
socket
|
||||
|> assign(:page_title, gettext("New Ammo type"))
|
||||
|> assign(:ammo_type, %{Ammo.get_ammo_type!(id, current_user) | id: nil})
|
||||
end
|
||||
|
||||
defp apply_action(socket, :new, _params) do
|
||||
socket
|
||||
|> assign(:page_title, gettext("New Ammo type"))
|
||||
@ -43,7 +49,12 @@ defmodule CanneryWeb.AmmoTypeLive.Index do
|
||||
{:noreply, socket |> put_flash(:info, prompt) |> list_ammo_types()}
|
||||
end
|
||||
|
||||
defp list_ammo_types(%{assigns: %{current_user: current_user}} = socket) do
|
||||
@impl true
|
||||
def handle_event("toggle_show_used", _params, %{assigns: %{show_used: show_used}} = socket) do
|
||||
{:noreply, socket |> assign(:show_used, !show_used) |> list_ammo_types()}
|
||||
end
|
||||
|
||||
defp list_ammo_types(%{assigns: %{current_user: current_user, show_used: show_used}} = socket) do
|
||||
ammo_types = Ammo.list_ammo_types(current_user)
|
||||
|
||||
columns =
|
||||
@ -83,9 +94,47 @@ defmodule CanneryWeb.AmmoTypeLive.Index do
|
||||
end)
|
||||
end)
|
||||
|> Kernel.++([
|
||||
%{label: gettext("Total # of rounds"), key: :round_count, type: :round_count},
|
||||
%{label: gettext("Total # of ammo"), key: :ammo_count, type: :ammo_count},
|
||||
%{label: gettext("Average Price paid"), key: :avg_price_paid, type: :avg_price_paid},
|
||||
%{label: gettext("Rounds"), key: :round_count, type: :round_count}
|
||||
])
|
||||
|> Kernel.++(
|
||||
if show_used do
|
||||
[
|
||||
%{
|
||||
label: gettext("Used rounds"),
|
||||
key: :used_round_count,
|
||||
type: :used_round_count
|
||||
},
|
||||
%{
|
||||
label: gettext("Total ever rounds"),
|
||||
key: :historical_round_count,
|
||||
type: :historical_round_count
|
||||
}
|
||||
]
|
||||
else
|
||||
[]
|
||||
end
|
||||
)
|
||||
|> Kernel.++([%{label: gettext("Packs"), key: :ammo_count, type: :ammo_count}])
|
||||
|> Kernel.++(
|
||||
if show_used do
|
||||
[
|
||||
%{
|
||||
label: gettext("Used packs"),
|
||||
key: :used_ammo_count,
|
||||
type: :used_ammo_count
|
||||
},
|
||||
%{
|
||||
label: gettext("Total ever packs"),
|
||||
key: :historical_ammo_count,
|
||||
type: :historical_ammo_count
|
||||
}
|
||||
]
|
||||
else
|
||||
[]
|
||||
end
|
||||
)
|
||||
|> Kernel.++([
|
||||
%{label: gettext("Average CPR"), key: :avg_price_paid, type: :avg_price_paid},
|
||||
%{label: nil, key: "actions", type: :actions, sortable: false}
|
||||
])
|
||||
|
||||
@ -98,7 +147,7 @@ defmodule CanneryWeb.AmmoTypeLive.Index do
|
||||
|
||||
defp get_ammo_type_values(ammo_type, columns, current_user) do
|
||||
columns
|
||||
|> Enum.into(%{}, fn %{key: key, type: type} ->
|
||||
|> Map.new(fn %{key: key, type: type} ->
|
||||
{key, get_ammo_type_value(type, key, ammo_type, current_user)}
|
||||
end)
|
||||
end
|
||||
@ -109,6 +158,18 @@ defmodule CanneryWeb.AmmoTypeLive.Index do
|
||||
defp get_ammo_type_value(:round_count, _key, ammo_type, current_user),
|
||||
do: ammo_type |> Ammo.get_round_count_for_ammo_type(current_user)
|
||||
|
||||
defp get_ammo_type_value(:historical_round_count, _key, ammo_type, current_user),
|
||||
do: ammo_type |> Ammo.get_historical_count_for_ammo_type(current_user)
|
||||
|
||||
defp get_ammo_type_value(:used_round_count, _key, ammo_type, current_user),
|
||||
do: ammo_type |> Ammo.get_used_count_for_ammo_type(current_user)
|
||||
|
||||
defp get_ammo_type_value(:historical_ammo_count, _key, ammo_type, current_user),
|
||||
do: ammo_type |> Ammo.get_ammo_groups_count_for_type(current_user, true)
|
||||
|
||||
defp get_ammo_type_value(:used_ammo_count, _key, ammo_type, current_user),
|
||||
do: ammo_type |> Ammo.get_used_ammo_groups_count_for_type(current_user)
|
||||
|
||||
defp get_ammo_type_value(:ammo_count, _key, ammo_type, current_user),
|
||||
do: ammo_type |> Ammo.get_ammo_groups_count_for_type(current_user)
|
||||
|
||||
@ -124,7 +185,7 @@ defmodule CanneryWeb.AmmoTypeLive.Index do
|
||||
|
||||
~H"""
|
||||
<.link
|
||||
patch={Routes.ammo_type_show_path(Endpoint, :show, @ammo_type)}
|
||||
navigate={Routes.ammo_type_show_path(Endpoint, :show, @ammo_type)}
|
||||
class="link"
|
||||
data-qa={"view-name-#{@ammo_type.id}"}
|
||||
>
|
||||
@ -139,7 +200,7 @@ defmodule CanneryWeb.AmmoTypeLive.Index do
|
||||
~H"""
|
||||
<div class="px-4 py-2 space-x-4 flex justify-center items-center">
|
||||
<.link
|
||||
patch={Routes.ammo_type_show_path(Endpoint, :show, @ammo_type)}
|
||||
navigate={Routes.ammo_type_show_path(Endpoint, :show, @ammo_type)}
|
||||
class="text-primary-600 link"
|
||||
data-qa={"view-#{@ammo_type.id}"}
|
||||
>
|
||||
@ -154,6 +215,14 @@ defmodule CanneryWeb.AmmoTypeLive.Index do
|
||||
<i class="fa-fw fa-lg fas fa-edit"></i>
|
||||
</.link>
|
||||
|
||||
<.link
|
||||
patch={Routes.ammo_type_index_path(Endpoint, :clone, @ammo_type)}
|
||||
class="text-primary-600 link"
|
||||
data-qa={"clone-#{@ammo_type.id}"}
|
||||
>
|
||||
<i class="fa-fw fa-lg fas fa-copy"></i>
|
||||
</.link>
|
||||
|
||||
<.link
|
||||
href="#"
|
||||
class="text-primary-600 link"
|
||||
|
@ -17,6 +17,14 @@
|
||||
<%= dgettext("actions", "New Ammo type") %>
|
||||
</.link>
|
||||
|
||||
<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_types_index_table"
|
||||
@ -27,7 +35,7 @@
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<%= if @live_action in [:new, :edit] do %>
|
||||
<%= if @live_action in [:new, :edit, :clone] do %>
|
||||
<.modal return_to={Routes.ammo_type_index_path(Endpoint, :index)}>
|
||||
<.live_component
|
||||
module={CanneryWeb.AmmoTypeLive.FormComponent}
|
||||
|
@ -8,13 +8,41 @@ defmodule CanneryWeb.AmmoTypeLive.Show do
|
||||
alias Cannery.Ammo
|
||||
alias CanneryWeb.Endpoint
|
||||
|
||||
@impl true
|
||||
def mount(_params, _session, socket), do: {:ok, socket |> assign(show_used: false)}
|
||||
@fields_list [
|
||||
%{label: gettext("Bullet type:"), key: :bullet_type, type: :string},
|
||||
%{label: gettext("Bullet core:"), key: :bullet_core, type: :string},
|
||||
%{label: gettext("Cartridge:"), key: :cartridge, type: :string},
|
||||
%{label: gettext("Caliber:"), key: :caliber, type: :string},
|
||||
%{label: gettext("Case material:"), key: :case_material, type: :string},
|
||||
%{label: gettext("Jacket type:"), key: :jacket_type, type: :string},
|
||||
%{label: gettext("Muzzle velocity:"), key: :muzzle_velocity, type: :string},
|
||||
%{label: gettext("Powder type:"), key: :powder_type, type: :string},
|
||||
%{label: gettext("Powder grains per charge:"), key: :powder_grains_per_charge, type: :string},
|
||||
%{label: gettext("Grains:"), key: :grains, type: :string},
|
||||
%{label: gettext("Pressure:"), key: :pressure, type: :string},
|
||||
%{label: gettext("Primer type:"), key: :primer_type, type: :string},
|
||||
%{label: gettext("Firing type:"), key: :firing_type, type: :string},
|
||||
%{label: gettext("Tracer:"), key: :tracer, type: :boolean},
|
||||
%{label: gettext("Incendiary:"), key: :incendiary, type: :boolean},
|
||||
%{label: gettext("Blank:"), key: :blank, type: :boolean},
|
||||
%{label: gettext("Corrosive:"), key: :corrosive, type: :boolean},
|
||||
%{label: gettext("Manufacturer:"), key: :manufacturer, type: :string},
|
||||
%{label: gettext("UPC:"), key: :upc, type: :string}
|
||||
]
|
||||
|
||||
@impl true
|
||||
def handle_params(%{"id" => id}, _params, %{assigns: %{current_user: current_user}} = socket) do
|
||||
def mount(_params, _session, socket),
|
||||
do: {:ok, socket |> assign(show_used: false, view_table: false)}
|
||||
|
||||
@impl true
|
||||
def handle_params(
|
||||
%{"id" => id},
|
||||
_params,
|
||||
%{assigns: %{current_user: current_user, live_action: live_action}} = socket
|
||||
) do
|
||||
ammo_type = Ammo.get_ammo_type!(id, current_user)
|
||||
{:noreply, socket |> display_ammo_type(ammo_type)}
|
||||
socket = socket |> assign(view_table: live_action == :table) |> display_ammo_type(ammo_type)
|
||||
{:noreply, socket}
|
||||
end
|
||||
|
||||
@impl true
|
||||
@ -36,22 +64,45 @@ defmodule CanneryWeb.AmmoTypeLive.Show do
|
||||
{:noreply, socket |> assign(:show_used, !show_used) |> display_ammo_type()}
|
||||
end
|
||||
|
||||
@impl true
|
||||
def handle_event(
|
||||
"toggle_table",
|
||||
_params,
|
||||
%{assigns: %{view_table: view_table, ammo_type: ammo_type}} = socket
|
||||
) do
|
||||
new_path =
|
||||
if view_table,
|
||||
do: Routes.ammo_type_show_path(Endpoint, :show, ammo_type),
|
||||
else: Routes.ammo_type_show_path(Endpoint, :table, ammo_type)
|
||||
|
||||
{:noreply, socket |> assign(view_table: !view_table) |> push_patch(to: new_path)}
|
||||
end
|
||||
|
||||
defp display_ammo_type(
|
||||
%{
|
||||
assigns: %{
|
||||
live_action: live_action,
|
||||
current_user: current_user,
|
||||
show_used: show_used
|
||||
}
|
||||
} = socket,
|
||||
%{assigns: %{live_action: live_action, current_user: current_user, show_used: show_used}} =
|
||||
socket,
|
||||
ammo_type
|
||||
) do
|
||||
fields_to_display =
|
||||
@fields_list
|
||||
|> Enum.any?(fn %{key: field, type: type} ->
|
||||
default_value =
|
||||
case type do
|
||||
:boolean -> false
|
||||
_other_type -> nil
|
||||
end
|
||||
|
||||
ammo_type |> Map.get(field) != default_value
|
||||
end)
|
||||
|
||||
socket
|
||||
|> assign(
|
||||
page_title: page_title(live_action),
|
||||
page_title: page_title(live_action, ammo_type),
|
||||
ammo_type: ammo_type,
|
||||
ammo_groups: ammo_type |> Ammo.list_ammo_groups_for_type(current_user, show_used),
|
||||
avg_cost_per_round: ammo_type |> Ammo.get_average_cost_for_ammo_type!(current_user)
|
||||
avg_cost_per_round: ammo_type |> Ammo.get_average_cost_for_ammo_type!(current_user),
|
||||
fields_list: @fields_list,
|
||||
fields_to_display: fields_to_display
|
||||
)
|
||||
end
|
||||
|
||||
@ -59,6 +110,9 @@ defmodule CanneryWeb.AmmoTypeLive.Show do
|
||||
socket |> display_ammo_type(ammo_type)
|
||||
end
|
||||
|
||||
defp page_title(:show), do: gettext("Show Ammo type")
|
||||
defp page_title(:edit), do: gettext("Edit Ammo type")
|
||||
defp page_title(action, %{name: ammo_type_name}) when action in [:show, :table],
|
||||
do: ammo_type_name
|
||||
|
||||
defp page_title(:edit, %{name: ammo_type_name}),
|
||||
do: gettext("Edit %{ammo_type_name}", ammo_type_name: ammo_type_name)
|
||||
end
|
||||
|
@ -39,46 +39,32 @@
|
||||
|
||||
<hr class="hr" />
|
||||
|
||||
<div class="grid sm:grid-cols-2 gap-4 text-center justify-center items-center">
|
||||
<%= for {field_name, field, type} <- [
|
||||
{gettext("Bullet type"), :bullet_type, :string},
|
||||
{gettext("Bullet core"), :bullet_core, :string},
|
||||
{gettext("Cartridge"), :cartridge, :string},
|
||||
{gettext("Caliber"), :caliber, :string},
|
||||
{gettext("Case material"), :case_material, :string},
|
||||
{gettext("Jacket type"), :jacket_type, :string},
|
||||
{gettext("Muzzle velocity"), :muzzle_velocity, :string},
|
||||
{gettext("Powder type"), :powder_type, :string},
|
||||
{gettext("Powder grains per charge"), :powder_grains_per_charge, :string},
|
||||
{gettext("Grains"), :grains, :string},
|
||||
{gettext("Pressure"), :pressure, :string},
|
||||
{gettext("Primer type"), :primer_type, :string},
|
||||
{gettext("Firing type"), :firing_type, :string},
|
||||
{gettext("Tracer"), :tracer, :boolean},
|
||||
{gettext("Incendiary"), :incendiary, :boolean},
|
||||
{gettext("Blank"), :blank, :boolean},
|
||||
{gettext("Corrosive"), :corrosive, :boolean},
|
||||
{gettext("Manufacturer"), :manufacturer, :string},
|
||||
{gettext("UPC"), :upc, :string}
|
||||
] do %>
|
||||
<%= if @ammo_type |> Map.get(field) do %>
|
||||
<h3 class="title text-lg">
|
||||
<%= field_name %>:
|
||||
</h3>
|
||||
<%= if @fields_to_display do %>
|
||||
<div class="grid sm:grid-cols-2 gap-4 text-center justify-center items-center">
|
||||
<%= for %{label: label, key: key, type: type} <- @fields_list do %>
|
||||
<%= if @ammo_type |> Map.get(key) do %>
|
||||
<h3 class="title text-lg">
|
||||
<%= label %>
|
||||
</h3>
|
||||
|
||||
<span class="text-primary-600">
|
||||
<%= case type do %>
|
||||
<% :boolean -> %>
|
||||
<%= @ammo_type |> Map.get(field) |> humanize() %>
|
||||
<% _ -> %>
|
||||
<%= @ammo_type |> Map.get(field) %>
|
||||
<% end %>
|
||||
</span>
|
||||
<span class="text-primary-600">
|
||||
<%= case type do %>
|
||||
<% :boolean -> %>
|
||||
<%= @ammo_type |> Map.get(key) |> humanize() %>
|
||||
<% _ -> %>
|
||||
<%= @ammo_type |> Map.get(key) %>
|
||||
<% end %>
|
||||
</span>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<hr class="hr" />
|
||||
<% end %>
|
||||
|
||||
<div class="grid sm:grid-cols-2 gap-4 text-center justify-center items-center">
|
||||
<h3 class="title text-lg">
|
||||
<%= gettext("Current # of rounds:") %>
|
||||
<%= gettext("Rounds:") %>
|
||||
</h3>
|
||||
|
||||
<span class="text-primary-600">
|
||||
@ -86,13 +72,53 @@
|
||||
</span>
|
||||
|
||||
<h3 class="title text-lg">
|
||||
<%= gettext("Total rounds shot:") %>
|
||||
<%= gettext("Used rounds:") %>
|
||||
</h3>
|
||||
|
||||
<span class="text-primary-600">
|
||||
<%= @ammo_type |> Ammo.get_used_count_for_ammo_type(@current_user) %>
|
||||
</span>
|
||||
|
||||
<h3 class="title text-lg">
|
||||
<%= gettext("Total ever rounds:") %>
|
||||
</h3>
|
||||
|
||||
<span class="text-primary-600">
|
||||
<%= @ammo_type |> Ammo.get_historical_count_for_ammo_type(@current_user) %>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<hr class="hr" />
|
||||
|
||||
<div class="grid sm:grid-cols-2 gap-4 text-center justify-center items-center">
|
||||
<h3 class="title text-lg">
|
||||
<%= gettext("Packs:") %>
|
||||
</h3>
|
||||
|
||||
<span class="text-primary-600">
|
||||
<%= @ammo_type |> Ammo.get_ammo_groups_count_for_type(@current_user) %>
|
||||
</span>
|
||||
|
||||
<h3 class="title text-lg">
|
||||
<%= gettext("Used packs:") %>
|
||||
</h3>
|
||||
|
||||
<span class="text-primary-600">
|
||||
<%= @ammo_type |> Ammo.get_used_ammo_groups_count_for_type(@current_user) %>
|
||||
</span>
|
||||
|
||||
<h3 class="title text-lg">
|
||||
<%= gettext("Total ever packs:") %>
|
||||
</h3>
|
||||
|
||||
<span class="text-primary-600">
|
||||
<%= @ammo_type |> Ammo.get_ammo_groups_count_for_type(@current_user, true) %>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<hr class="hr" />
|
||||
|
||||
<div class="grid sm:grid-cols-2 gap-4 text-center justify-center items-center">
|
||||
<h3 class="title text-lg">
|
||||
<%= gettext("Added on:") %>
|
||||
</h3>
|
||||
@ -103,7 +129,7 @@
|
||||
|
||||
<%= if @avg_cost_per_round do %>
|
||||
<h3 class="title text-lg">
|
||||
<%= gettext("Average Price paid") %>:
|
||||
<%= gettext("Average CPR") %>:
|
||||
</h3>
|
||||
|
||||
<span class="text-primary-600">
|
||||
@ -120,26 +146,51 @@
|
||||
|
||||
<hr class="hr" />
|
||||
|
||||
<div class="flex flex-col justify-center items-center">
|
||||
<div class="flex justify-center items-center space-x-4">
|
||||
<.toggle_button action="toggle_show_used" value={@show_used}>
|
||||
<span class="title text-lg text-primary-600">
|
||||
<%= gettext("Show used") %>
|
||||
</span>
|
||||
</.toggle_button>
|
||||
|
||||
<.toggle_button action="toggle_table" value={@view_table}>
|
||||
<span class="title text-lg text-primary-600">
|
||||
<%= gettext("View as table") %>
|
||||
</span>
|
||||
</.toggle_button>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<div class="w-full p-4">
|
||||
<%= if @ammo_groups |> Enum.empty?() do %>
|
||||
<h2 class="mx-8 my-4 title text-lg text-primary-600">
|
||||
<h2 class="px-4 title text-lg text-primary-600">
|
||||
<%= gettext("No ammo for this type") %>
|
||||
<%= display_emoji("😔") %>
|
||||
</h2>
|
||||
<% else %>
|
||||
<div class="flex flex-wrap justify-center items-center">
|
||||
<%= for ammo_group <- @ammo_groups do %>
|
||||
<.ammo_group_card ammo_group={ammo_group} show_container={true} />
|
||||
<% end %>
|
||||
</div>
|
||||
<%= if @view_table do %>
|
||||
<.live_component
|
||||
module={CanneryWeb.Components.AmmoGroupTableComponent}
|
||||
id="ammo-type-show-table"
|
||||
ammo_groups={@ammo_groups}
|
||||
current_user={@current_user}
|
||||
show_used={@show_used}
|
||||
>
|
||||
<:container :let={%{container: %{name: container_name} = container}}>
|
||||
<.link
|
||||
navigate={Routes.container_show_path(Endpoint, :show, container)}
|
||||
class="mx-2 my-1 link"
|
||||
>
|
||||
<%= container_name %>
|
||||
</.link>
|
||||
</:container>
|
||||
</.live_component>
|
||||
<% else %>
|
||||
<div class="flex flex-wrap justify-center items-center">
|
||||
<%= for ammo_group <- @ammo_groups do %>
|
||||
<.ammo_group_card ammo_group={ammo_group} show_container={true} />
|
||||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -35,15 +35,18 @@ defmodule CanneryWeb.ContainerLive.FormComponent do
|
||||
container_params
|
||||
) do
|
||||
changeset_action =
|
||||
case action do
|
||||
:new -> :insert
|
||||
:edit -> :update
|
||||
cond do
|
||||
action in [:new, :clone] -> :insert
|
||||
action == :edit -> :update
|
||||
end
|
||||
|
||||
changeset =
|
||||
case action do
|
||||
:new -> container |> Container.create_changeset(user, container_params)
|
||||
:edit -> container |> Container.update_changeset(container_params)
|
||||
cond do
|
||||
action in [:new, :clone] ->
|
||||
container |> Container.create_changeset(user, container_params)
|
||||
|
||||
action == :edit ->
|
||||
container |> Container.update_changeset(container_params)
|
||||
end
|
||||
|
||||
changeset =
|
||||
@ -76,9 +79,10 @@ defmodule CanneryWeb.ContainerLive.FormComponent do
|
||||
|
||||
defp save_container(
|
||||
%{assigns: %{current_user: current_user, return_to: return_to}} = socket,
|
||||
:new,
|
||||
action,
|
||||
container_params
|
||||
) do
|
||||
)
|
||||
when action in [:new, :clone] do
|
||||
socket =
|
||||
case Containers.create_container(container_params, current_user) do
|
||||
{:ok, %{name: container_name}} ->
|
||||
|
@ -6,11 +6,11 @@ defmodule CanneryWeb.ContainerLive.Index do
|
||||
use CanneryWeb, :live_view
|
||||
import CanneryWeb.Components.ContainerCard
|
||||
alias Cannery.{Containers, Containers.Container, Repo}
|
||||
alias CanneryWeb.Endpoint
|
||||
alias CanneryWeb.{Components.TagCard, Endpoint}
|
||||
alias Ecto.Changeset
|
||||
|
||||
@impl true
|
||||
def mount(_params, _session, socket), do: {:ok, socket}
|
||||
def mount(_params, _session, socket), do: {:ok, socket |> assign(view_table: false)}
|
||||
|
||||
@impl true
|
||||
def handle_params(params, _url, %{assigns: %{live_action: live_action}} = socket) do
|
||||
@ -31,10 +31,29 @@ defmodule CanneryWeb.ContainerLive.Index do
|
||||
socket |> assign(:page_title, gettext("New Container")) |> assign(:container, %Container{})
|
||||
end
|
||||
|
||||
defp apply_action(%{assigns: %{current_user: current_user}} = socket, :clone, %{"id" => id}) do
|
||||
container = Containers.get_container!(id, current_user)
|
||||
|
||||
socket
|
||||
|> assign(page_title: gettext("New Container"), container: %{container | id: nil})
|
||||
end
|
||||
|
||||
defp apply_action(socket, :index, _params) do
|
||||
socket
|
||||
|> assign(:page_title, gettext("Containers"))
|
||||
|> assign(:container, nil)
|
||||
|> assign(
|
||||
page_title: gettext("Containers"),
|
||||
container: nil
|
||||
)
|
||||
|> display_containers()
|
||||
end
|
||||
|
||||
defp apply_action(socket, :table, _params) do
|
||||
socket
|
||||
|> assign(
|
||||
page_title: gettext("Containers"),
|
||||
container: nil,
|
||||
view_table: true
|
||||
)
|
||||
|> display_containers()
|
||||
end
|
||||
|
||||
@ -83,10 +102,135 @@ defmodule CanneryWeb.ContainerLive.Index do
|
||||
{:noreply, socket}
|
||||
end
|
||||
|
||||
@impl true
|
||||
def handle_event("toggle_table", _params, %{assigns: %{view_table: view_table}} = socket) do
|
||||
new_path =
|
||||
if view_table,
|
||||
do: Routes.container_index_path(Endpoint, :index),
|
||||
else: Routes.container_index_path(Endpoint, :table)
|
||||
|
||||
{:noreply, socket |> assign(view_table: !view_table) |> push_patch(to: new_path)}
|
||||
end
|
||||
|
||||
defp display_containers(%{assigns: %{current_user: current_user}} = socket) do
|
||||
containers =
|
||||
Containers.list_containers(current_user) |> Repo.preload([:tags, :ammo_groups], force: true)
|
||||
|
||||
socket |> assign(containers: containers)
|
||||
columns =
|
||||
[
|
||||
%{label: gettext("Name"), key: :name, type: :string},
|
||||
%{label: gettext("Description"), key: :desc, type: :string},
|
||||
%{label: gettext("Location"), key: :location, type: :string},
|
||||
%{label: gettext("Type"), key: :type, type: :string},
|
||||
%{label: gettext("Packs"), key: :packs, type: :integer},
|
||||
%{label: gettext("Rounds"), key: :rounds, type: :string},
|
||||
%{label: gettext("Tags"), key: :tags, type: :tags},
|
||||
%{label: nil, key: :actions, sortable: false, type: :actions}
|
||||
]
|
||||
|> Enum.filter(fn %{key: key, type: type} ->
|
||||
# remove columns if all values match defaults
|
||||
default_value =
|
||||
case type do
|
||||
:boolean -> false
|
||||
_other_type -> nil
|
||||
end
|
||||
|
||||
containers
|
||||
|> Enum.any?(fn container ->
|
||||
type in [:tags, :actions] or not (container |> Map.get(key) == default_value)
|
||||
end)
|
||||
end)
|
||||
|
||||
rows =
|
||||
containers
|
||||
|> Enum.map(fn container -> container |> get_row_data_for_container(columns) end)
|
||||
|
||||
socket
|
||||
|> assign(
|
||||
containers: containers,
|
||||
columns: columns,
|
||||
rows: rows
|
||||
)
|
||||
end
|
||||
|
||||
@spec get_row_data_for_container(Container.t(), [map()]) :: map()
|
||||
defp get_row_data_for_container(container, columns) do
|
||||
container = container |> Repo.preload([:ammo_groups, :tags])
|
||||
|
||||
columns
|
||||
|> Map.new(fn %{key: key} -> {key, get_value_for_key(key, container)} end)
|
||||
end
|
||||
|
||||
@spec get_value_for_key(atom(), Container.t()) :: any()
|
||||
defp get_value_for_key(:packs, container) do
|
||||
container |> Containers.get_container_ammo_group_count!()
|
||||
end
|
||||
|
||||
defp get_value_for_key(:rounds, container) do
|
||||
container |> Containers.get_container_rounds!()
|
||||
end
|
||||
|
||||
defp get_value_for_key(:tags, container) do
|
||||
assigns = %{container: container}
|
||||
|
||||
{container.tags |> Enum.map(fn %{name: name} -> name end),
|
||||
~H"""
|
||||
<div class="flex flex-wrap justify-center items-center">
|
||||
<%= unless @container.tags |> Enum.empty?() do %>
|
||||
<%= for tag <- @container.tags do %>
|
||||
<TagCard.simple_tag_card tag={tag} />
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
<div class="mx-4 my-2">
|
||||
<.link
|
||||
patch={Routes.container_index_path(Endpoint, :edit_tags, @container)}
|
||||
class="text-primary-600 link"
|
||||
>
|
||||
<i class="fa-fw fa-lg fas fa-tags"></i>
|
||||
</.link>
|
||||
</div>
|
||||
</div>
|
||||
"""}
|
||||
end
|
||||
|
||||
defp get_value_for_key(:actions, container) do
|
||||
assigns = %{container: container}
|
||||
|
||||
~H"""
|
||||
<.link
|
||||
patch={Routes.container_index_path(Endpoint, :edit, @container)}
|
||||
class="text-primary-600 link"
|
||||
data-qa={"edit-#{@container.id}"}
|
||||
>
|
||||
<i class="fa-fw fa-lg fas fa-edit"></i>
|
||||
</.link>
|
||||
|
||||
<.link
|
||||
patch={Routes.container_index_path(Endpoint, :clone, @container)}
|
||||
class="text-primary-600 link"
|
||||
data-qa={"clone-#{@container.id}"}
|
||||
>
|
||||
<i class="fa-fw fa-lg fas fa-copy"></i>
|
||||
</.link>
|
||||
|
||||
<.link
|
||||
href="#"
|
||||
class="text-primary-600 link"
|
||||
phx-click="delete"
|
||||
phx-value-id={@container.id}
|
||||
data-confirm={
|
||||
dgettext("prompts", "Are you sure you want to delete %{name}?", name: @container.name)
|
||||
}
|
||||
data-qa={"delete-#{@container.id}"}
|
||||
>
|
||||
<i class="fa-fw fa-lg fas fa-trash"></i>
|
||||
</.link>
|
||||
"""
|
||||
end
|
||||
|
||||
defp get_value_for_key(key, container), do: container |> Map.get(key)
|
||||
|
||||
def return_to(true = _view_table), do: Routes.container_index_path(Endpoint, :table)
|
||||
def return_to(false = _view_table), do: Routes.container_index_path(Endpoint, :index)
|
||||
end
|
||||
|
@ -16,62 +16,88 @@
|
||||
<.link patch={Routes.container_index_path(Endpoint, :new)} class="btn btn-primary">
|
||||
<%= dgettext("actions", "New Container") %>
|
||||
</.link>
|
||||
|
||||
<div class="flex flex-col justify-center items-center">
|
||||
<.toggle_button action="toggle_table" value={@view_table}>
|
||||
<span class="title text-lg text-primary-600">
|
||||
<%= gettext("View as table") %>
|
||||
</span>
|
||||
</.toggle_button>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<div class="max-w-full flex flex-row flex-wrap justify-center items-center">
|
||||
<%= for container <- @containers do %>
|
||||
<.container_card container={container}>
|
||||
<:tag_actions>
|
||||
<div class="mx-4 my-2">
|
||||
<.link
|
||||
patch={Routes.container_index_path(Endpoint, :edit_tags, container)}
|
||||
class="text-primary-600 link"
|
||||
>
|
||||
<i class="fa-fw fa-lg fas fa-tags"></i>
|
||||
</.link>
|
||||
</div>
|
||||
</:tag_actions>
|
||||
<.link
|
||||
patch={Routes.container_index_path(Endpoint, :edit, container)}
|
||||
class="text-primary-600 link"
|
||||
data-qa={"edit-#{container.id}"}
|
||||
>
|
||||
<i class="fa-fw fa-lg fas fa-edit"></i>
|
||||
</.link>
|
||||
<div class="w-full flex flex-row flex-wrap justify-center items-center">
|
||||
<%= if @view_table do %>
|
||||
<.live_component
|
||||
module={CanneryWeb.Components.TableComponent}
|
||||
id="containers_index_table"
|
||||
action={@live_action}
|
||||
columns={@columns}
|
||||
rows={@rows}
|
||||
/>
|
||||
<% else %>
|
||||
<%= for container <- @containers do %>
|
||||
<.container_card container={container}>
|
||||
<:tag_actions>
|
||||
<div class="mx-4 my-2">
|
||||
<.link
|
||||
patch={Routes.container_index_path(Endpoint, :edit_tags, container)}
|
||||
class="text-primary-600 link"
|
||||
>
|
||||
<i class="fa-fw fa-lg fas fa-tags"></i>
|
||||
</.link>
|
||||
</div>
|
||||
</:tag_actions>
|
||||
<.link
|
||||
patch={Routes.container_index_path(Endpoint, :edit, container)}
|
||||
class="text-primary-600 link"
|
||||
data-qa={"edit-#{container.id}"}
|
||||
>
|
||||
<i class="fa-fw fa-lg fas fa-edit"></i>
|
||||
</.link>
|
||||
|
||||
<.link
|
||||
href="#"
|
||||
class="text-primary-600 link"
|
||||
phx-click="delete"
|
||||
phx-value-id={container.id}
|
||||
data-confirm={
|
||||
dgettext("prompts", "Are you sure you want to delete %{name}?", name: container.name)
|
||||
}
|
||||
data-qa={"delete-#{container.id}"}
|
||||
>
|
||||
<i class="fa-fw fa-lg fas fa-trash"></i>
|
||||
</.link>
|
||||
</.container_card>
|
||||
<.link
|
||||
patch={Routes.container_index_path(Endpoint, :clone, container)}
|
||||
class="text-primary-600 link"
|
||||
data-qa={"clone-#{container.id}"}
|
||||
>
|
||||
<i class="fa-fw fa-lg fas fa-copy"></i>
|
||||
</.link>
|
||||
|
||||
<.link
|
||||
href="#"
|
||||
class="text-primary-600 link"
|
||||
phx-click="delete"
|
||||
phx-value-id={container.id}
|
||||
data-confirm={
|
||||
dgettext("prompts", "Are you sure you want to delete %{name}?", name: container.name)
|
||||
}
|
||||
data-qa={"delete-#{container.id}"}
|
||||
>
|
||||
<i class="fa-fw fa-lg fas fa-trash"></i>
|
||||
</.link>
|
||||
</.container_card>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<%= if @live_action in [:new, :edit] do %>
|
||||
<.modal return_to={Routes.container_index_path(Endpoint, :index)}>
|
||||
<%= if @live_action in [:new, :edit, :clone] do %>
|
||||
<.modal return_to={return_to(@view_table)}>
|
||||
<.live_component
|
||||
module={CanneryWeb.ContainerLive.FormComponent}
|
||||
id={@container.id || :new}
|
||||
title={@page_title}
|
||||
action={@live_action}
|
||||
container={@container}
|
||||
return_to={Routes.container_index_path(Endpoint, :index)}
|
||||
return_to={return_to(@view_table)}
|
||||
current_user={@current_user}
|
||||
/>
|
||||
</.modal>
|
||||
<% end %>
|
||||
|
||||
<%= if @live_action == :edit_tags do %>
|
||||
<.modal return_to={Routes.container_index_path(Endpoint, :index)}>
|
||||
<.modal return_to={return_to(@view_table)}>
|
||||
<.live_component
|
||||
module={CanneryWeb.ContainerLive.EditTagsComponent}
|
||||
id={@container.id}
|
||||
|
@ -11,15 +11,19 @@ defmodule CanneryWeb.ContainerLive.Show do
|
||||
alias Phoenix.LiveView.Socket
|
||||
|
||||
@impl true
|
||||
def mount(_params, _session, socket), do: {:ok, socket |> assign(show_used: false)}
|
||||
def mount(_params, _session, socket),
|
||||
do: {:ok, socket |> assign(show_used: false, view_table: false)}
|
||||
|
||||
@impl true
|
||||
def handle_params(
|
||||
%{"id" => id},
|
||||
_session,
|
||||
%{assigns: %{current_user: current_user}} = socket
|
||||
%{assigns: %{current_user: current_user, live_action: live_action}} = socket
|
||||
) do
|
||||
{:noreply, socket |> render_container(id, current_user)}
|
||||
socket =
|
||||
socket |> assign(view_table: live_action == :table) |> render_container(id, current_user)
|
||||
|
||||
{:noreply, socket}
|
||||
end
|
||||
|
||||
@impl true
|
||||
@ -87,6 +91,20 @@ defmodule CanneryWeb.ContainerLive.Show do
|
||||
{:noreply, socket |> assign(:show_used, !show_used) |> render_container()}
|
||||
end
|
||||
|
||||
@impl true
|
||||
def handle_event(
|
||||
"toggle_table",
|
||||
_params,
|
||||
%{assigns: %{view_table: view_table, container: container}} = socket
|
||||
) do
|
||||
new_path =
|
||||
if view_table,
|
||||
do: Routes.container_show_path(Endpoint, :show, container),
|
||||
else: Routes.container_show_path(Endpoint, :table, container)
|
||||
|
||||
{:noreply, socket |> assign(view_table: !view_table) |> push_patch(to: new_path)}
|
||||
end
|
||||
|
||||
@spec render_container(Socket.t(), Container.id(), User.t()) :: Socket.t()
|
||||
defp render_container(
|
||||
%{assigns: %{live_action: live_action, show_used: show_used}} = socket,
|
||||
@ -102,7 +120,7 @@ defmodule CanneryWeb.ContainerLive.Show do
|
||||
|
||||
page_title =
|
||||
case live_action do
|
||||
:show -> gettext("Show %{name}", name: container_name)
|
||||
action when action in [:show, :table] -> container_name
|
||||
:edit -> gettext("Edit %{name}", name: container_name)
|
||||
:edit_tags -> gettext("Edit %{name} tags", name: container_name)
|
||||
end
|
||||
|
@ -91,25 +91,47 @@
|
||||
|
||||
<hr class="mb-4 hr" />
|
||||
|
||||
<div class="flex flex-col justify-center items-center">
|
||||
<div class="flex justify-center items-center space-x-4">
|
||||
<.toggle_button action="toggle_show_used" value={@show_used}>
|
||||
<span class="title text-lg text-primary-600">
|
||||
<%= dgettext("actions", "Show used") %>
|
||||
<%= gettext("Show used") %>
|
||||
</span>
|
||||
</.toggle_button>
|
||||
|
||||
<.toggle_button action="toggle_table" value={@view_table}>
|
||||
<span class="title text-lg text-primary-600">
|
||||
<%= gettext("View as table") %>
|
||||
</span>
|
||||
</.toggle_button>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<div class="w-full p-4">
|
||||
<%= if @ammo_groups |> Enum.empty?() do %>
|
||||
<h2 class="mx-8 my-4 title text-lg text-primary-600">
|
||||
<h2 class="mx-4 title text-lg text-primary-600">
|
||||
<%= gettext("No ammo in this container") %>
|
||||
</h2>
|
||||
<% else %>
|
||||
<div class="flex flex-wrap justify-center items-center">
|
||||
<%= for ammo_group <- @ammo_groups do %>
|
||||
<.ammo_group_card ammo_group={ammo_group} />
|
||||
<% end %>
|
||||
</div>
|
||||
<%= if @view_table do %>
|
||||
<.live_component
|
||||
module={CanneryWeb.Components.AmmoGroupTableComponent}
|
||||
id="ammo-type-show-table"
|
||||
ammo_groups={@ammo_groups}
|
||||
current_user={@current_user}
|
||||
show_used={@show_used}
|
||||
>
|
||||
<:ammo_type :let={%{name: ammo_type_name} = ammo_type}>
|
||||
<.link navigate={Routes.ammo_type_show_path(Endpoint, :show, ammo_type)} class="link">
|
||||
<%= ammo_type_name %>
|
||||
</.link>
|
||||
</:ammo_type>
|
||||
</.live_component>
|
||||
<% else %>
|
||||
<div class="flex flex-wrap justify-center items-center">
|
||||
<%= for ammo_group <- @ammo_groups do %>
|
||||
<.ammo_group_card ammo_group={ammo_group} />
|
||||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -138,7 +138,7 @@ defmodule CanneryWeb.HomeLive do
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
<p>0.5.5</p>
|
||||
<p>0.7.0</p>
|
||||
<i class="fas fa-md fa-info-circle"></i>
|
||||
</.link>
|
||||
</li>
|
||||
|
@ -88,13 +88,7 @@ defmodule CanneryWeb.RangeLive.Index do
|
||||
shot_groups
|
||||
|> Enum.map(fn shot_group -> shot_group |> get_row_data_for_shot_group(columns) end)
|
||||
|
||||
chart_data =
|
||||
shot_groups
|
||||
|> Enum.map(fn shot_group ->
|
||||
shot_group
|
||||
|> get_chart_data_for_shot_group([:name, :count, :notes, :date])
|
||||
end)
|
||||
|> Enum.sort_by(fn %{date: date} -> date end, Date)
|
||||
chart_data = shot_groups |> get_chart_data_for_shot_group()
|
||||
|
||||
socket
|
||||
|> assign(
|
||||
@ -106,40 +100,21 @@ defmodule CanneryWeb.RangeLive.Index do
|
||||
)
|
||||
end
|
||||
|
||||
@spec get_chart_data_for_shot_group(ShotGroup.t(), keys :: [atom()]) :: map()
|
||||
defp get_chart_data_for_shot_group(shot_group, keys) do
|
||||
shot_group = shot_group |> Repo.preload(ammo_group: :ammo_type)
|
||||
@spec get_chart_data_for_shot_group([ShotGroup.t()]) :: [map()]
|
||||
defp get_chart_data_for_shot_group(shot_groups) do
|
||||
shot_groups
|
||||
|> Repo.preload(ammo_group: :ammo_type)
|
||||
|> Enum.group_by(fn %{date: date} -> date end, fn %{count: count} -> count end)
|
||||
|> Enum.map(fn {date, rounds} ->
|
||||
sum = Enum.sum(rounds)
|
||||
|
||||
labels =
|
||||
if shot_group.notes do
|
||||
[gettext("Notes: %{notes}", notes: shot_group.notes)]
|
||||
else
|
||||
[]
|
||||
end
|
||||
|
||||
labels = [
|
||||
gettext(
|
||||
"Name: %{name}",
|
||||
name: shot_group.ammo_group.ammo_type.name
|
||||
),
|
||||
gettext(
|
||||
"Rounds shot: %{count}",
|
||||
count: shot_group.count
|
||||
)
|
||||
| labels
|
||||
]
|
||||
|
||||
keys
|
||||
|> Map.new(fn key ->
|
||||
value =
|
||||
case key do
|
||||
:name -> shot_group.ammo_group.ammo_type.name
|
||||
key -> shot_group |> Map.get(key)
|
||||
end
|
||||
|
||||
{key, value}
|
||||
%{
|
||||
date: date,
|
||||
count: sum,
|
||||
label: gettext("Rounds shot: %{count}", count: sum)
|
||||
}
|
||||
end)
|
||||
|> Map.put(:labels, labels)
|
||||
|> Enum.sort_by(fn %{date: date} -> date end)
|
||||
end
|
||||
|
||||
@spec get_row_data_for_shot_group(ShotGroup.t(), [map()]) :: map()
|
||||
@ -154,7 +129,10 @@ defmodule CanneryWeb.RangeLive.Index do
|
||||
:name ->
|
||||
{shot_group.ammo_group.ammo_type.name,
|
||||
~H"""
|
||||
<.link patch={Routes.ammo_group_show_path(Endpoint, :show, @shot_group.ammo_group)} class="link">
|
||||
<.link
|
||||
navigate={Routes.ammo_group_show_path(Endpoint, :show, @shot_group.ammo_group)}
|
||||
class="link"
|
||||
>
|
||||
<%= @shot_group.ammo_group.ammo_type.name %>
|
||||
</.link>
|
||||
"""}
|
||||
|
@ -9,11 +9,11 @@
|
||||
<%= display_emoji("😔") %>
|
||||
</h1>
|
||||
|
||||
<.link patch={Routes.ammo_group_index_path(Endpoint, :index)} class="btn btn-primary">
|
||||
<.link navigate={Routes.ammo_group_index_path(Endpoint, :index)} class="btn btn-primary">
|
||||
<%= dgettext("actions", "Why not get some ready to shoot?") %>
|
||||
</.link>
|
||||
<% else %>
|
||||
<.link patch={Routes.ammo_group_index_path(Endpoint, :index)} class="btn btn-primary">
|
||||
<.link navigate={Routes.ammo_group_index_path(Endpoint, :index)} class="btn btn-primary">
|
||||
<%= dgettext("actions", "Stage ammo") %>
|
||||
</.link>
|
||||
|
||||
@ -59,9 +59,9 @@
|
||||
phx-update="ignore"
|
||||
class="max-h-72"
|
||||
data-chart-data={Jason.encode!(@chart_data)}
|
||||
data-label={gettext("Rounds fired")}
|
||||
data-label={gettext("Rounds shot")}
|
||||
data-color={random_color()}
|
||||
aria-label={gettext("Rounds fired chart")}
|
||||
aria-label={gettext("Rounds shot chart")}
|
||||
role="img"
|
||||
>
|
||||
<%= dgettext("errors", "Your browser does not support the canvas element.") %>
|
||||
|
@ -60,6 +60,7 @@ defmodule CanneryWeb.Router do
|
||||
put "/users/settings", UserSettingsController, :update
|
||||
delete "/users/settings/:id", UserSettingsController, :delete
|
||||
get "/users/settings/confirm_email/:token", UserSettingsController, :confirm_email
|
||||
get "/export/:mode", ExportController, :export
|
||||
|
||||
live "/tags", TagLive.Index, :index
|
||||
live "/tags/new", TagLive.Index, :new
|
||||
@ -67,27 +68,33 @@ defmodule CanneryWeb.Router do
|
||||
|
||||
live "/catalog", AmmoTypeLive.Index, :index
|
||||
live "/catalog/new", AmmoTypeLive.Index, :new
|
||||
live "/catalog/:id/clone", AmmoTypeLive.Index, :clone
|
||||
live "/catalog/:id/edit", AmmoTypeLive.Index, :edit
|
||||
|
||||
live "/catalog/:id", AmmoTypeLive.Show, :show
|
||||
live "/catalog/:id/show", AmmoTypeLive.Show, :show
|
||||
live "/catalog/:id/show/edit", AmmoTypeLive.Show, :edit
|
||||
live "/catalog/:id/show/table", AmmoTypeLive.Show, :table
|
||||
|
||||
live "/containers", ContainerLive.Index, :index
|
||||
live "/containers/table", ContainerLive.Index, :table
|
||||
live "/containers/new", ContainerLive.Index, :new
|
||||
live "/containers/:id/edit", ContainerLive.Index, :edit
|
||||
live "/containers/:id/clone", ContainerLive.Index, :clone
|
||||
live "/containers/:id/edit_tags", ContainerLive.Index, :edit_tags
|
||||
|
||||
live "/containers/:id", ContainerLive.Show, :show
|
||||
live "/containers/:id/show", ContainerLive.Show, :show
|
||||
live "/containers/:id/show/table", ContainerLive.Show, :table
|
||||
live "/containers/:id/show/edit", ContainerLive.Show, :edit
|
||||
live "/containers/:id/show/edit_tags", ContainerLive.Show, :edit_tags
|
||||
|
||||
live "/ammo", AmmoGroupLive.Index, :index
|
||||
live "/ammo/new", AmmoGroupLive.Index, :new
|
||||
live "/ammo/:id/edit", AmmoGroupLive.Index, :edit
|
||||
live "/ammo/:id/clone", AmmoGroupLive.Index, :clone
|
||||
live "/ammo/:id/add_shot_group", AmmoGroupLive.Index, :add_shot_group
|
||||
live "/ammo/:id/move", AmmoGroupLive.Index, :move
|
||||
|
||||
live "/ammo/:id", AmmoGroupLive.Show, :show
|
||||
live "/ammo/:id/show", AmmoGroupLive.Show, :show
|
||||
live "/ammo/:id/show/edit", AmmoGroupLive.Show, :edit
|
||||
live "/ammo/:id/show/add_shot_group", AmmoGroupLive.Show, :add_shot_group
|
||||
live "/ammo/:id/show/move", AmmoGroupLive.Show, :move
|
||||
|
@ -139,12 +139,22 @@
|
||||
|
||||
<hr class="hr" />
|
||||
|
||||
<.link
|
||||
href={Routes.user_settings_path(@conn, :delete, @current_user)}
|
||||
method={:delete}
|
||||
class="btn btn-alert"
|
||||
data-confirm={dgettext("prompts", "Are you sure you want to delete your account?")}
|
||||
>
|
||||
<%= dgettext("actions", "Delete User") %>
|
||||
</.link>
|
||||
<div class="flex justify-center items-center">
|
||||
<.link
|
||||
href={Routes.export_path(@conn, :export, :json)}
|
||||
class="mx-4 my-2 btn btn-primary"
|
||||
target="_blank"
|
||||
>
|
||||
<%= dgettext("actions", "Export Data as JSON") %>
|
||||
</.link>
|
||||
|
||||
<.link
|
||||
href={Routes.user_settings_path(@conn, :delete, @current_user)}
|
||||
method={:delete}
|
||||
class="mx-4 my-2 btn btn-alert"
|
||||
data-confirm={dgettext("prompts", "Are you sure you want to delete your account?")}
|
||||
>
|
||||
<%= dgettext("actions", "Delete User") %>
|
||||
</.link>
|
||||
</div>
|
||||
</div>
|
||||
|
8
mix.exs
8
mix.exs
@ -4,7 +4,7 @@ defmodule Cannery.MixProject do
|
||||
def project do
|
||||
[
|
||||
app: :cannery,
|
||||
version: "0.6.0",
|
||||
version: "0.7.0",
|
||||
elixir: "1.14.1",
|
||||
elixirc_paths: elixirc_paths(Mix.env()),
|
||||
compilers: Mix.compilers(),
|
||||
@ -13,7 +13,7 @@ defmodule Cannery.MixProject do
|
||||
deps: deps(),
|
||||
dialyzer: [plt_add_apps: [:ex_unit]],
|
||||
consolidate_protocols: Mix.env() not in [:dev, :test],
|
||||
preferred_cli_env: [test: :test],
|
||||
preferred_cli_env: [test: :test, "test.all": :test],
|
||||
# ExDoc
|
||||
name: "Cannery",
|
||||
source_url: "https://gitea.bubbletea.dev/shibao/cannery",
|
||||
@ -86,13 +86,13 @@ defmodule Cannery.MixProject do
|
||||
setup: ["deps.get", "compile", "ecto.setup", "cmd npm install --prefix assets"],
|
||||
"ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"],
|
||||
"ecto.reset": ["ecto.drop", "ecto.setup"],
|
||||
format: [
|
||||
"format.all": [
|
||||
"cmd npm run format --prefix assets",
|
||||
"format",
|
||||
"gettext.extract --merge",
|
||||
"gettext.merge --no-fuzzy priv/gettext"
|
||||
],
|
||||
test: [
|
||||
"test.all": [
|
||||
"cmd npm run test --prefix assets",
|
||||
"dialyzer",
|
||||
"credo --strict",
|
||||
|
@ -11,6 +11,7 @@ msgid ""
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:44
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:50
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:40
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Add Ammo"
|
||||
@ -48,7 +49,7 @@ msgstr ""
|
||||
msgid "Create Invite"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:148
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:157
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Delete User"
|
||||
msgstr ""
|
||||
@ -119,7 +120,7 @@ msgstr ""
|
||||
msgid "Reset password"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:46
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:53
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:73
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:156
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:50
|
||||
@ -155,7 +156,7 @@ msgstr ""
|
||||
msgid "Why not get some ready to shoot?"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:190
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:80
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:101
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:38
|
||||
#, elixir-autogen, elixir-format
|
||||
@ -232,11 +233,6 @@ msgstr ""
|
||||
msgid "Set Unlimited"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:97
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Show used"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:86
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:31
|
||||
#, elixir-autogen, elixir-format
|
||||
@ -248,3 +244,8 @@ msgstr ""
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Unstage from range"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:148
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Export Data as JSON"
|
||||
msgstr ""
|
||||
|
@ -24,6 +24,7 @@ msgstr ""
|
||||
## date. Leave "msgstr"s empty as changing them here has no
|
||||
## effect: edit them in PO (.po) files instead.
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:44
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:50
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:40
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Add Ammo"
|
||||
@ -61,7 +62,7 @@ msgstr "Passwort ändern"
|
||||
msgid "Create Invite"
|
||||
msgstr "Einladung erstellen"
|
||||
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:148
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:157
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Delete User"
|
||||
msgstr "Benutzer löschen"
|
||||
@ -132,7 +133,7 @@ msgstr "Bestätigungsmail erneut senden"
|
||||
msgid "Reset password"
|
||||
msgstr "Passwort zurücksetzen"
|
||||
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:46
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:53
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:73
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:156
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:50
|
||||
@ -168,7 +169,7 @@ msgstr "Munition markieren"
|
||||
msgid "Why not get some ready to shoot?"
|
||||
msgstr "Warum nicht einige für den Schießstand auswählen?"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:190
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:80
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:101
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:38
|
||||
#, elixir-autogen, elixir-format
|
||||
@ -245,11 +246,6 @@ msgstr ""
|
||||
msgid "Set Unlimited"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:97
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Show used"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:86
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:31
|
||||
#, elixir-autogen, elixir-format
|
||||
@ -261,3 +257,8 @@ msgstr ""
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Unstage from range"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:148
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Export Data as JSON"
|
||||
msgstr ""
|
||||
|
@ -52,26 +52,19 @@ msgstr "Admins:"
|
||||
msgid "Ammo"
|
||||
msgstr "Munition"
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:96
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:21
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:90
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Ammo type"
|
||||
msgstr "Munitionsarten"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:88
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:106
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Average Price paid"
|
||||
msgstr "Durchschnittlicher Kaufpreis"
|
||||
|
||||
#: lib/cannery_web/live/tag_live/form_component.ex:79
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Background color"
|
||||
msgstr "Hintergrundfarbe"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:140
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:71
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:59
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:82
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Blank"
|
||||
msgstr "Knallpatrone"
|
||||
@ -82,68 +75,63 @@ msgid "Brass"
|
||||
msgstr "Messing"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:44
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:53
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:45
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:64
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Bullet core"
|
||||
msgstr "Projektilkern"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:37
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:52
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:44
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:63
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Bullet type"
|
||||
msgstr "Patronenart"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:58
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:55
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:47
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:66
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Caliber"
|
||||
msgstr "Kaliber"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:51
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:54
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:46
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:65
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Cartridge"
|
||||
msgstr "Patrone"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:65
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:56
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:48
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:67
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Case material"
|
||||
msgstr "Gehäusematerial"
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:72
|
||||
#: 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:95
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Container"
|
||||
msgstr "Behälter"
|
||||
|
||||
#: lib/cannery_web/components/topbar.ex:57
|
||||
#: lib/cannery_web/live/container_live/index.ex:36
|
||||
#: lib/cannery_web/live/container_live/index.ex:44
|
||||
#: lib/cannery_web/live/container_live/index.ex:53
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:3
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Containers"
|
||||
msgstr "Behälter"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:144
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:72
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:60
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:83
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Corrosive"
|
||||
msgstr "Korrosiv"
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:83
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:27
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:91
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Count"
|
||||
msgstr "Anzahl"
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:37
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:38
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:8
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Count:"
|
||||
@ -151,6 +139,7 @@ msgstr "Anzahl:"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:24
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:27
|
||||
#: lib/cannery_web/live/container_live/index.ex:122
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Description"
|
||||
msgstr "Beschreibung"
|
||||
@ -172,7 +161,6 @@ msgid "Edit Ammo group"
|
||||
msgstr "Munitionsgruppe bearbeiten"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:23
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:63
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Edit Ammo type"
|
||||
msgstr "Munitionstyp bearbeiten"
|
||||
@ -198,15 +186,13 @@ msgid "FMJ"
|
||||
msgstr "VM"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:103
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:65
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:53
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:76
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Grains"
|
||||
msgstr "Körner"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:136
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:70
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:58
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:81
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Incendiary"
|
||||
msgstr "Brandmunition"
|
||||
@ -240,6 +226,7 @@ msgstr "Für 60 Tage eingeloggt bleiben"
|
||||
|
||||
#: lib/cannery_web/components/move_ammo_group_component.ex:69
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:42
|
||||
#: lib/cannery_web/live/container_live/index.ex:123
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Location"
|
||||
msgstr "Standort"
|
||||
@ -256,8 +243,7 @@ msgid "Magazine, Clip, Ammo Box, etc"
|
||||
msgstr "Magazin, Ladestreifen, Munitionskiste usw."
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:148
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:73
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:61
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:84
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Manufacturer"
|
||||
msgstr "Hersteller"
|
||||
@ -273,8 +259,9 @@ msgid "My cool ammo can"
|
||||
msgstr "Meine coole Munitionskiste"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:20
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:51
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:62
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:20
|
||||
#: lib/cannery_web/live/container_live/index.ex:121
|
||||
#: lib/cannery_web/live/invite_live/form_component.html.heex:20
|
||||
#: lib/cannery_web/live/tag_live/form_component.ex:75
|
||||
#, elixir-autogen, elixir-format
|
||||
@ -282,11 +269,13 @@ msgid "Name"
|
||||
msgstr "Name"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:29
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:35
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "New Ammo type"
|
||||
msgstr "Neuer Munitionstyp"
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:31
|
||||
#: lib/cannery_web/live/container_live/index.ex:38
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "New Container"
|
||||
msgstr "Neuer Behälter"
|
||||
@ -311,7 +300,7 @@ msgstr "Keine Munition"
|
||||
msgid "No Ammo Types"
|
||||
msgstr "Keine Munitionsarten"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:134
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:166
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "No ammo for this type"
|
||||
msgstr "Keine Munition dieser Art"
|
||||
@ -332,7 +321,8 @@ msgstr "Keine Einladung"
|
||||
msgid "No tags"
|
||||
msgstr "Keine Tags"
|
||||
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:30
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:37
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:88
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:41
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:88
|
||||
#: lib/cannery_web/live/range_live/form_component.html.heex:29
|
||||
@ -341,7 +331,7 @@ msgstr "Keine Tags"
|
||||
msgid "Notes"
|
||||
msgstr "Bemerkungen"
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:43
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:51
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:24
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Notes:"
|
||||
@ -353,26 +343,24 @@ msgid "On the bookshelf"
|
||||
msgstr "Auf dem Bücherregal"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:111
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:66
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:54
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:77
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Pressure"
|
||||
msgstr "Druck"
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:85
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:34
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:92
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Price paid"
|
||||
msgstr "Kaufpreis"
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:62
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:70
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Price paid:"
|
||||
msgstr "Kaufpreis:"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:118
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:67
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:55
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:78
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Primer type"
|
||||
msgstr "Zündertyp"
|
||||
@ -400,11 +388,6 @@ msgstr ""
|
||||
msgid "Settings"
|
||||
msgstr "Einstellungen"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:62
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Show Ammo type"
|
||||
msgstr "Zeige Munitionsarten"
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:83
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Simple:"
|
||||
@ -421,6 +404,7 @@ msgid "Stored in"
|
||||
msgstr "Gelagert in"
|
||||
|
||||
#: lib/cannery_web/components/topbar.ex:49
|
||||
#: lib/cannery_web/live/container_live/index.ex:127
|
||||
#: lib/cannery_web/live/tag_live/index.ex:32
|
||||
#: lib/cannery_web/live/tag_live/index.html.heex:3
|
||||
#, elixir-autogen, elixir-format
|
||||
@ -443,14 +427,14 @@ msgid "The self-hosted firearm tracker website"
|
||||
msgstr "Die selbst-gehostete Website zur Verwaltung von Schusswaffen"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:132
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:69
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:57
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:80
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Tracer"
|
||||
msgstr "Leuchtspur"
|
||||
|
||||
#: lib/cannery_web/components/move_ammo_group_component.ex:68
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:35
|
||||
#: lib/cannery_web/live/container_live/index.ex:124
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Type"
|
||||
msgstr "Art"
|
||||
@ -491,8 +475,8 @@ msgstr "Ihre Daten bleiben bei Ihnen, Punkt"
|
||||
msgid "No tags for this container"
|
||||
msgstr "Keine Tags für diesen Behälter"
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:79
|
||||
#: lib/cannery_web/components/topbar.ex:81
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:94
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Range"
|
||||
msgstr "Schießplatz"
|
||||
@ -524,12 +508,12 @@ msgstr "Keine Munition selektiert"
|
||||
msgid "Record shots"
|
||||
msgstr "Schüsse dokumentieren"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:49
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:56
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Ammo groups"
|
||||
msgstr "Munitionsgruppen"
|
||||
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:38
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:45
|
||||
#: lib/cannery_web/live/range_live/form_component.html.heex:36
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Date (UTC)"
|
||||
@ -552,12 +536,14 @@ msgid "No shots recorded"
|
||||
msgstr "Keine Schüsse dokumentiert"
|
||||
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:21
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:25
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Rounds left"
|
||||
msgstr "Patronen verbleibend"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:87
|
||||
#: lib/cannery_web/live/range_live/index.ex:81
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:62
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Rounds shot"
|
||||
msgstr "Patronen abgefeuert"
|
||||
@ -572,7 +558,7 @@ msgstr "Schießkladde"
|
||||
msgid "Move Ammo group"
|
||||
msgstr "Munitionsgruppe verschieben"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:253
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:97
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Move ammo"
|
||||
msgstr "Munition verschieben"
|
||||
@ -587,12 +573,14 @@ msgstr "Kein weiterer Behälter"
|
||||
msgid "Shot log"
|
||||
msgstr "Schießkladde"
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:63
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:145
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:71
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:78
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:159
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:227
|
||||
#: 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
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:110
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:179
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:136
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "$%{amount}"
|
||||
msgstr "$%{amount}"
|
||||
@ -603,36 +591,31 @@ msgid "Bimetal"
|
||||
msgstr "Bimetall"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:72
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:57
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:49
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:68
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Jacket type"
|
||||
msgstr "Patronenhülse"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:79
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:58
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:50
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:69
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Muzzle velocity"
|
||||
msgstr "Mündungsgeschwindigkeit"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:93
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:61
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:52
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:72
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Powder grains per charge"
|
||||
msgstr "Pulverkörner pro Ladung"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:89
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:59
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:51
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:70
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Powder type"
|
||||
msgstr "Pulverart"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:152
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:74
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:62
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:85
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "UPC"
|
||||
msgstr "UPC"
|
||||
@ -653,19 +636,18 @@ msgstr "Derzeitiges Passwort"
|
||||
msgid "New password"
|
||||
msgstr "Neues Passwort"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:183
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:73
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Stage"
|
||||
msgstr "Markiert"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:183
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:73
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Unstage"
|
||||
msgstr "Demarkiert"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:125
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:68
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:56
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:79
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Firing type"
|
||||
msgstr "Patronenhülsenform"
|
||||
@ -681,35 +663,32 @@ msgid "Loading..."
|
||||
msgstr "Lädt..."
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:27
|
||||
#: lib/cannery_web/live/container_live/show.ex:106
|
||||
#: lib/cannery_web/live/container_live/show.ex:124
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Edit %{name}"
|
||||
msgstr "%{name} bearbeiten"
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:46
|
||||
#: lib/cannery_web/live/container_live/show.ex:107
|
||||
#: lib/cannery_web/live/container_live/index.ex:65
|
||||
#: lib/cannery_web/live/container_live/show.ex:125
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Edit %{name} tags"
|
||||
msgstr "Editiere %{name} Tags"
|
||||
|
||||
#: lib/cannery_web/components/container_card.ex:63
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:67
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:32
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Rounds:"
|
||||
msgstr "Patronen:"
|
||||
|
||||
#: lib/cannery_web/live/container_live/show.ex:105
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Show %{name}"
|
||||
msgstr "Zeige %{name}"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:117
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:116
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:224
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:178
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:142
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "No cost information"
|
||||
msgstr "Keine Preisinformationen"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:93
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:87
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "% left"
|
||||
msgstr "% verbleibend"
|
||||
@ -739,21 +718,6 @@ msgstr "Prozent verbleibend:"
|
||||
msgid "Rounds used"
|
||||
msgstr "Patronen verbraucht"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:81
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Current # of rounds:"
|
||||
msgstr "Derzeitige # an Patronen:"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:86
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Total # of rounds"
|
||||
msgstr "Summe aller Patronen"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:89
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Total rounds shot:"
|
||||
msgstr "Summe abgegebener Schüsse:"
|
||||
|
||||
#: lib/cannery_web/controllers/user_confirmation_controller.ex:8
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Confirm your account"
|
||||
@ -790,19 +754,19 @@ msgstr "Schüsse dokumentieren"
|
||||
msgid "Copies"
|
||||
msgstr "Kopien"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:34
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:40
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Ammo types"
|
||||
msgstr "Munitionsart"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:96
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:66
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Added on"
|
||||
msgstr "Hinzugefügt am"
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:49
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:57
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:30
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:97
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:123
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Added on:"
|
||||
msgstr "Hinzugefügt am:"
|
||||
@ -871,7 +835,7 @@ msgstr "Munitionstyp bearbeiten"
|
||||
msgid "Move Ammo"
|
||||
msgstr "Munition verschieben"
|
||||
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:105
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:111
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "No ammo in this container"
|
||||
msgstr "Keine Munitionsgruppe in diesem Behälter"
|
||||
@ -887,6 +851,7 @@ msgid "This ammo is not in a container"
|
||||
msgstr "Diese Munitionsgruppe ist nicht in einem Behälter"
|
||||
|
||||
#: lib/cannery_web/components/container_card.ex:58
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:95
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:27
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Packs:"
|
||||
@ -908,59 +873,237 @@ msgstr ""
|
||||
msgid "Leave \"Uses left\" blank to make invite unlimited"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:87
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Total # of ammo"
|
||||
msgstr "Summe aller Patronen"
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:71
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:86
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Container:"
|
||||
msgstr "Behälter"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:48
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:126
|
||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:23
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:152
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:97
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Show used"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:101
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:61
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Used up on"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:55
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:63
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Used up on:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:197
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:195
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:19
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "%{percentage}%"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.ex:121
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Name: %{name}"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.ex:115
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Notes: %{notes}"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:62
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Rounds fired"
|
||||
msgstr "Patronen verbraucht"
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:64
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Rounds fired chart"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.ex:125
|
||||
#: lib/cannery_web/live/range_live/index.ex:114
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Rounds shot: %{count}"
|
||||
msgstr "Patronen abgefeuert"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:117
|
||||
#: lib/cannery_web/live/container_live/index.ex:125
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Packs"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:97
|
||||
#: lib/cannery_web/live/container_live/index.ex:126
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Rounds"
|
||||
msgstr "Patronen:"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:158
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:23
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:103
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "View as table"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:127
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Total ever packs"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:111
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Total ever packs:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:108
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Total ever rounds"
|
||||
msgstr "Summe aller Patronen"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:83
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Total ever rounds:"
|
||||
msgstr "Summe abgegebener Schüsse:"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:122
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Used packs"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:103
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Used packs:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:103
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Used rounds"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:75
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Used rounds:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:33
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Used up!"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:64
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Rounds shot chart"
|
||||
msgstr "Patronen abgefeuert"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:27
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Blank:"
|
||||
msgstr "Knallpatrone"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:13
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Bullet core:"
|
||||
msgstr "Projektilkern"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:12
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Bullet type:"
|
||||
msgstr "Patronenart"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:15
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Caliber:"
|
||||
msgstr "Kaliber"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:14
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Cartridge:"
|
||||
msgstr "Patrone"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:16
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Case material:"
|
||||
msgstr "Gehäusematerial"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:28
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Corrosive:"
|
||||
msgstr "Korrosiv"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:24
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Firing type:"
|
||||
msgstr "Patronenhülsenform"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:21
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Grains:"
|
||||
msgstr "Körner"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:26
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Incendiary:"
|
||||
msgstr "Brandmunition"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:17
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Jacket type:"
|
||||
msgstr "Patronenhülse"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:29
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Manufacturer:"
|
||||
msgstr "Hersteller"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:18
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Muzzle velocity:"
|
||||
msgstr "Mündungsgeschwindigkeit"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:20
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Powder grains per charge:"
|
||||
msgstr "Pulverkörner pro Ladung"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:19
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Powder type:"
|
||||
msgstr "Pulverart"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:22
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Pressure:"
|
||||
msgstr "Druck"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:23
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Primer type:"
|
||||
msgstr "Zündertyp"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:25
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Tracer:"
|
||||
msgstr "Leuchtspur"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:30
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "UPC:"
|
||||
msgstr "UPC"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:137
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:132
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Average CPR"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:117
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Edit %{ammo_type_name}"
|
||||
msgstr "%{name} bearbeiten"
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:39
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:233
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Empty"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:86
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "CPR"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:77
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "CPR:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:84
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Original Count"
|
||||
msgstr "Ursprüngliche Anzahl:"
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:44
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Original Count:"
|
||||
msgstr "Ursprüngliche Anzahl:"
|
||||
|
@ -28,13 +28,13 @@ msgstr ""
|
||||
msgid "Container must be empty before deleting"
|
||||
msgstr "Behälter muss vor dem Löschen leer sein"
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:69
|
||||
#: lib/cannery_web/live/container_live/show.ex:71
|
||||
#: lib/cannery_web/live/container_live/index.ex:88
|
||||
#: lib/cannery_web/live/container_live/show.ex:75
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Could not delete %{name}: %{error}"
|
||||
msgstr "Konnte %{name} nicht löschen: %{error}"
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:57
|
||||
#: lib/cannery_web/live/container_live/index.ex:76
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Could not find that container"
|
||||
msgstr "Konnte Behälter nicht finden"
|
||||
@ -121,22 +121,22 @@ msgstr "Sie sind nicht berechtigt, diese Seite aufzurufen"
|
||||
msgid "You are not authorized to view this page."
|
||||
msgstr "Sie sind nicht berechtigt, diese Seite aufzurufen."
|
||||
|
||||
#: lib/cannery/accounts/user.ex:130
|
||||
#: lib/cannery/accounts/user.ex:138
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "did not change"
|
||||
msgstr "hat sich nicht geändert"
|
||||
|
||||
#: lib/cannery/accounts/user.ex:151
|
||||
#: lib/cannery/accounts/user.ex:159
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "does not match password"
|
||||
msgstr "Passwort stimmt nicht überein"
|
||||
|
||||
#: lib/cannery/accounts/user.ex:188
|
||||
#: lib/cannery/accounts/user.ex:196
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "is not valid"
|
||||
msgstr "ist nicht gültig"
|
||||
|
||||
#: lib/cannery/accounts/user.ex:84
|
||||
#: lib/cannery/accounts/user.ex:92
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "must have the @ sign and no spaces"
|
||||
msgstr "Muss ein @ Zeichen und keine Leerzeichen haben"
|
||||
@ -151,13 +151,13 @@ msgstr "Tag nicht gefunden"
|
||||
msgid "Tag could not be added"
|
||||
msgstr "Tag konnte nicht hinzugefügt werden"
|
||||
|
||||
#: lib/cannery/activity_log/shot_group.ex:115
|
||||
#: lib/cannery/activity_log/shot_group.ex:123
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Count must be at least 1"
|
||||
msgstr "Anzahl muss mindestens 1 sein"
|
||||
|
||||
#: lib/cannery/activity_log/shot_group.ex:74
|
||||
#: lib/cannery/activity_log/shot_group.ex:111
|
||||
#: lib/cannery/activity_log/shot_group.ex:82
|
||||
#: lib/cannery/activity_log/shot_group.ex:119
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Count must be less than %{count}"
|
||||
msgstr "Anzahl muss weniger als %{count} betragen"
|
||||
@ -175,29 +175,29 @@ msgstr ""
|
||||
msgid "Tag could not be removed"
|
||||
msgstr "Tag konnte nicht gelöscht werden"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.ex:156
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.ex:157
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Could not parse number of copies"
|
||||
msgstr "Konnte die Anzahl der Kopien nicht verstehen"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.ex:141
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.ex:142
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Invalid number of copies, must be between 1 and %{max}. Was %{multiplier}"
|
||||
msgstr ""
|
||||
"Ungültige Nummer an Kopien. Muss zwischen 1 and %{max} liegen. War "
|
||||
"%{multiplier}"
|
||||
|
||||
#: lib/cannery/ammo.ex:535
|
||||
#: lib/cannery/ammo.ex:609
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Invalid multiplier"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery/ammo/ammo_group.ex:84
|
||||
#: lib/cannery/ammo/ammo_group.ex:94
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Please select an ammo type and container"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery/activity_log/shot_group.ex:69
|
||||
#: lib/cannery/activity_log/shot_group.ex:77
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Please select a valid user and ammo group"
|
||||
msgstr ""
|
||||
|
@ -23,16 +23,16 @@ msgstr ""
|
||||
## Run "mix gettext.extract" to bring this file up to
|
||||
## date. Leave "msgstr"s empty as changing them here has no
|
||||
## effect: edit them in PO (.po) files instead.
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.ex:85
|
||||
#: lib/cannery_web/live/container_live/form_component.ex:85
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.ex:86
|
||||
#: lib/cannery_web/live/container_live/form_component.ex:89
|
||||
#: lib/cannery_web/live/invite_live/form_component.ex:80
|
||||
#: lib/cannery_web/live/tag_live/form_component.ex:126
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "%{name} created successfully"
|
||||
msgstr "%{name} erfolgreich erstellt"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:41
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:28
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:47
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:56
|
||||
#: lib/cannery_web/live/invite_live/index.ex:53
|
||||
#: lib/cannery_web/live/invite_live/index.ex:133
|
||||
#: lib/cannery_web/live/tag_live/index.ex:38
|
||||
@ -50,8 +50,8 @@ msgstr "%{name} erfolgreich deaktiviert"
|
||||
msgid "%{name} enabled succesfully"
|
||||
msgstr "%{name} erfolgreich aktiviert"
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:62
|
||||
#: lib/cannery_web/live/container_live/show.ex:61
|
||||
#: lib/cannery_web/live/container_live/index.ex:81
|
||||
#: lib/cannery_web/live/container_live/show.ex:65
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "%{name} has been deleted"
|
||||
msgstr "%{name} wurde gelöscht"
|
||||
@ -62,7 +62,7 @@ msgid "%{name} updated succesfully"
|
||||
msgstr "%{name} erfolgreich aktualisiert"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.ex:67
|
||||
#: lib/cannery_web/live/container_live/form_component.ex:67
|
||||
#: lib/cannery_web/live/container_live/form_component.ex:70
|
||||
#: lib/cannery_web/live/invite_live/form_component.ex:62
|
||||
#: lib/cannery_web/live/tag_live/form_component.ex:108
|
||||
#, elixir-autogen, elixir-format
|
||||
@ -74,7 +74,7 @@ msgstr "%{name} erfolgreich aktualisiert"
|
||||
msgid "A link to confirm your email change has been sent to the new address."
|
||||
msgstr "Eine Mail zum Bestätigen ihre Mailadresse wurde Ihnen zugesandt."
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:56
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:64
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Ammo group deleted succesfully"
|
||||
msgstr "Munitionsgruppe erfolgreich gelöscht"
|
||||
@ -87,7 +87,8 @@ msgstr ""
|
||||
"Sind Sie sicher, dass sie %{email} löschen möchten? Dies kann nicht "
|
||||
"zurückgenommen werden!"
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:48
|
||||
#: lib/cannery_web/live/container_live/index.ex:223
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:73
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:51
|
||||
#: lib/cannery_web/live/tag_live/index.html.heex:39
|
||||
#, elixir-autogen, elixir-format
|
||||
@ -99,13 +100,13 @@ msgstr "Sind Sie sicher, dass sie %{name} löschen möchten?"
|
||||
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?"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:225
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:132
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:75
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to delete this ammo?"
|
||||
msgstr "Sind Sie sicher, dass sie diese Munition löschen möchten?"
|
||||
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:146
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:155
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to delete your account?"
|
||||
msgstr "Sind Sie sicher, dass sie Ihren Account löschen möchten?"
|
||||
@ -164,7 +165,7 @@ msgstr "Bitte überprüfen Sie ihre Mailbox und bestätigen Sie das Nutzerkonto"
|
||||
msgid "Register to setup %{name}"
|
||||
msgstr "Registrieren Sie sich, um %{name} zu bearbeiten"
|
||||
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:48
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:55
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:74
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:157
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:52
|
||||
@ -192,7 +193,7 @@ msgstr ""
|
||||
msgid "%{name} added successfully"
|
||||
msgstr "%{name} erfolgreich hinzugefügt"
|
||||
|
||||
#: lib/cannery_web/live/container_live/show.ex:37
|
||||
#: lib/cannery_web/live/container_live/show.ex:41
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "%{tag_name} has been removed from %{container_name}"
|
||||
msgstr "%{tag_name} wurde von %{container_name} entfernt"
|
||||
@ -213,7 +214,7 @@ msgid "Are you sure you want to unstage this ammo?"
|
||||
msgstr "Sind sie sicher, dass Sie diese Munition demarkieren möchten?"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:132
|
||||
#: lib/cannery_web/live/range_live/index.ex:181
|
||||
#: lib/cannery_web/live/range_live/index.ex:159
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to delete this shot record?"
|
||||
msgstr "Sind sie sicher, dass sie die Schießkladde löschen möchten?"
|
||||
@ -285,14 +286,14 @@ msgstr "Munition erfolgreich demarkiert"
|
||||
msgid "Ammo updated successfully"
|
||||
msgstr "Munitionsgruppe erfolgreich aktualisiert"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.ex:177
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.ex:178
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Ammo added successfully"
|
||||
msgid_plural "Ammo added successfully"
|
||||
msgstr[0] "Munitionsgruppe erfolgreich aktualisiert"
|
||||
msgstr[1] "Munitionsgruppe erfolgreich aktualisiert"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:163
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:232
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:28
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Are you sure you want to delete %{name}? This will delete all %{name} type ammo as well!"
|
||||
|
@ -37,26 +37,19 @@ msgstr ""
|
||||
msgid "Ammo"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:96
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:21
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:90
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Ammo type"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:88
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:106
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Average Price paid"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/tag_live/form_component.ex:79
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Background color"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:140
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:71
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:59
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:82
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Blank"
|
||||
msgstr ""
|
||||
@ -67,68 +60,63 @@ msgid "Brass"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:44
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:53
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:45
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:64
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Bullet core"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:37
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:52
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:44
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:63
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Bullet type"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:58
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:55
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:47
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:66
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Caliber"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:51
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:54
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:46
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:65
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Cartridge"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:65
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:56
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:48
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:67
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Case material"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:72
|
||||
#: 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:95
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Container"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/topbar.ex:57
|
||||
#: lib/cannery_web/live/container_live/index.ex:36
|
||||
#: lib/cannery_web/live/container_live/index.ex:44
|
||||
#: lib/cannery_web/live/container_live/index.ex:53
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:3
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Containers"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:144
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:72
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:60
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:83
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Corrosive"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:83
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:27
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:91
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Count"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:37
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:38
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:8
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Count:"
|
||||
@ -136,6 +124,7 @@ msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:24
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:27
|
||||
#: lib/cannery_web/live/container_live/index.ex:122
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Description"
|
||||
msgstr ""
|
||||
@ -157,7 +146,6 @@ msgid "Edit Ammo group"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:23
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:63
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Edit Ammo type"
|
||||
msgstr ""
|
||||
@ -183,15 +171,13 @@ msgid "FMJ"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:103
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:65
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:53
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:76
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Grains"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:136
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:70
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:58
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:81
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Incendiary"
|
||||
msgstr ""
|
||||
@ -225,6 +211,7 @@ msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/move_ammo_group_component.ex:69
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:42
|
||||
#: lib/cannery_web/live/container_live/index.ex:123
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Location"
|
||||
msgstr ""
|
||||
@ -241,8 +228,7 @@ msgid "Magazine, Clip, Ammo Box, etc"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:148
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:73
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:61
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:84
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Manufacturer"
|
||||
msgstr ""
|
||||
@ -258,8 +244,9 @@ msgid "My cool ammo can"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:20
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:51
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:62
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:20
|
||||
#: lib/cannery_web/live/container_live/index.ex:121
|
||||
#: lib/cannery_web/live/invite_live/form_component.html.heex:20
|
||||
#: lib/cannery_web/live/tag_live/form_component.ex:75
|
||||
#, elixir-autogen, elixir-format
|
||||
@ -267,11 +254,13 @@ msgid "Name"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:29
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:35
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "New Ammo type"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:31
|
||||
#: lib/cannery_web/live/container_live/index.ex:38
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "New Container"
|
||||
msgstr ""
|
||||
@ -296,7 +285,7 @@ msgstr ""
|
||||
msgid "No Ammo Types"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:134
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:166
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "No ammo for this type"
|
||||
msgstr ""
|
||||
@ -317,7 +306,8 @@ msgstr ""
|
||||
msgid "No tags"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:30
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:37
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:88
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:41
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:88
|
||||
#: lib/cannery_web/live/range_live/form_component.html.heex:29
|
||||
@ -326,7 +316,7 @@ msgstr ""
|
||||
msgid "Notes"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:43
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:51
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:24
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Notes:"
|
||||
@ -338,26 +328,24 @@ msgid "On the bookshelf"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:111
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:66
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:54
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:77
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Pressure"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:85
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:34
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:92
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Price paid"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:62
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:70
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Price paid:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:118
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:67
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:55
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:78
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Primer type"
|
||||
msgstr ""
|
||||
@ -383,11 +371,6 @@ msgstr ""
|
||||
msgid "Settings"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:62
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Show Ammo type"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:83
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Simple:"
|
||||
@ -404,6 +387,7 @@ msgid "Stored in"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/topbar.ex:49
|
||||
#: lib/cannery_web/live/container_live/index.ex:127
|
||||
#: lib/cannery_web/live/tag_live/index.ex:32
|
||||
#: lib/cannery_web/live/tag_live/index.html.heex:3
|
||||
#, elixir-autogen, elixir-format
|
||||
@ -426,14 +410,14 @@ msgid "The self-hosted firearm tracker website"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:132
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:69
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:57
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:80
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Tracer"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/move_ammo_group_component.ex:68
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:35
|
||||
#: lib/cannery_web/live/container_live/index.ex:124
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Type"
|
||||
msgstr ""
|
||||
@ -474,8 +458,8 @@ msgstr ""
|
||||
msgid "No tags for this container"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:79
|
||||
#: lib/cannery_web/components/topbar.ex:81
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:94
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Range"
|
||||
msgstr ""
|
||||
@ -507,12 +491,12 @@ msgstr ""
|
||||
msgid "Record shots"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:49
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:56
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Ammo groups"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:38
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:45
|
||||
#: lib/cannery_web/live/range_live/form_component.html.heex:36
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Date (UTC)"
|
||||
@ -535,12 +519,14 @@ msgid "No shots recorded"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:21
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:25
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Rounds left"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:87
|
||||
#: lib/cannery_web/live/range_live/index.ex:81
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:62
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Rounds shot"
|
||||
msgstr ""
|
||||
@ -555,7 +541,7 @@ msgstr ""
|
||||
msgid "Move Ammo group"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:253
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:97
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Move ammo"
|
||||
msgstr ""
|
||||
@ -570,12 +556,14 @@ msgstr ""
|
||||
msgid "Shot log"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:63
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:145
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:71
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:78
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:159
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:227
|
||||
#: 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
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:110
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:179
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:136
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "$%{amount}"
|
||||
msgstr ""
|
||||
@ -586,36 +574,31 @@ msgid "Bimetal"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:72
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:57
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:49
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:68
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Jacket type"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:79
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:58
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:50
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:69
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Muzzle velocity"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:93
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:61
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:52
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:72
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Powder grains per charge"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:89
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:59
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:51
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:70
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Powder type"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:152
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:74
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:62
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:85
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "UPC"
|
||||
msgstr ""
|
||||
@ -636,19 +619,18 @@ msgstr ""
|
||||
msgid "New password"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:183
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:73
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Stage"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:183
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:73
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Unstage"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:125
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:68
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:56
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:79
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Firing type"
|
||||
msgstr ""
|
||||
@ -664,35 +646,32 @@ msgid "Loading..."
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:27
|
||||
#: lib/cannery_web/live/container_live/show.ex:106
|
||||
#: lib/cannery_web/live/container_live/show.ex:124
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Edit %{name}"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:46
|
||||
#: lib/cannery_web/live/container_live/show.ex:107
|
||||
#: lib/cannery_web/live/container_live/index.ex:65
|
||||
#: lib/cannery_web/live/container_live/show.ex:125
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Edit %{name} tags"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/container_card.ex:63
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:67
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:32
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Rounds:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/show.ex:105
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Show %{name}"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:117
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:116
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:224
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:178
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:142
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "No cost information"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:93
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:87
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "% left"
|
||||
msgstr ""
|
||||
@ -722,21 +701,6 @@ msgstr ""
|
||||
msgid "Rounds used"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:81
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Current # of rounds:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:86
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Total # of rounds"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:89
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Total rounds shot:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/controllers/user_confirmation_controller.ex:8
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Confirm your account"
|
||||
@ -773,19 +737,19 @@ msgstr ""
|
||||
msgid "Copies"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:34
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:40
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Ammo types"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:96
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:66
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Added on"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:49
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:57
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:30
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:97
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:123
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Added on:"
|
||||
msgstr ""
|
||||
@ -854,7 +818,7 @@ msgstr ""
|
||||
msgid "Move Ammo"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:105
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:111
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "No ammo in this container"
|
||||
msgstr ""
|
||||
@ -870,6 +834,7 @@ msgid "This ammo is not in a container"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/container_card.ex:58
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:95
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:27
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Packs:"
|
||||
@ -891,59 +856,237 @@ msgstr ""
|
||||
msgid "Leave \"Uses left\" blank to make invite unlimited"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:87
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Total # of ammo"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:71
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:86
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Container:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:48
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:126
|
||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:23
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:152
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:97
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Show used"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:101
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:61
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Used up on"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:55
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:63
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Used up on:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:197
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:195
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:19
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "%{percentage}%"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.ex:121
|
||||
#: lib/cannery_web/live/range_live/index.ex:114
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Name: %{name}"
|
||||
msgid "Rounds shot: %{count}"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.ex:115
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:117
|
||||
#: lib/cannery_web/live/container_live/index.ex:125
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Notes: %{notes}"
|
||||
msgid "Packs"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:62
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:97
|
||||
#: lib/cannery_web/live/container_live/index.ex:126
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Rounds fired"
|
||||
msgid "Rounds"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:158
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:23
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:103
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "View as table"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:127
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Total ever packs"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:111
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Total ever packs:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:108
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Total ever rounds"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:83
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Total ever rounds:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:122
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Used packs"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:103
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Used packs:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:103
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Used rounds"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:75
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Used rounds:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:33
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Used up!"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:64
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Rounds fired chart"
|
||||
msgid "Rounds shot chart"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.ex:125
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:27
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Rounds shot: %{count}"
|
||||
msgid "Blank:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:13
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Bullet core:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:12
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Bullet type:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:15
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Caliber:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:14
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Cartridge:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:16
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Case material:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:28
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Corrosive:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:24
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Firing type:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:21
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Grains:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:26
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Incendiary:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:17
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Jacket type:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:29
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Manufacturer:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:18
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Muzzle velocity:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:20
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Powder grains per charge:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:19
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Powder type:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:22
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Pressure:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:23
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Primer type:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:25
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Tracer:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:30
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "UPC:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:137
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:132
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Average CPR"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:117
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Edit %{ammo_type_name}"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:39
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:233
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Empty"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:86
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "CPR"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:77
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "CPR:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:84
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Original Count"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:44
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Original Count:"
|
||||
msgstr ""
|
||||
|
@ -12,6 +12,7 @@ msgstr ""
|
||||
"Plural-Forms: nplurals=2\n"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:44
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:50
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:40
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Add Ammo"
|
||||
@ -49,7 +50,7 @@ msgstr ""
|
||||
msgid "Create Invite"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:148
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:157
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Delete User"
|
||||
msgstr ""
|
||||
@ -120,7 +121,7 @@ msgstr ""
|
||||
msgid "Reset password"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:46
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:53
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:73
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:156
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:50
|
||||
@ -156,7 +157,7 @@ msgstr ""
|
||||
msgid "Why not get some ready to shoot?"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:190
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:80
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:101
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:38
|
||||
#, elixir-autogen, elixir-format
|
||||
@ -233,11 +234,6 @@ msgstr ""
|
||||
msgid "Set Unlimited"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:97
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Show used"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:86
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:31
|
||||
#, elixir-autogen, elixir-format
|
||||
@ -249,3 +245,8 @@ msgstr ""
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Unstage from range"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:148
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Export Data as JSON"
|
||||
msgstr ""
|
||||
|
@ -38,26 +38,19 @@ msgstr ""
|
||||
msgid "Ammo"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:96
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:21
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:90
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Ammo type"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:88
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:106
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Average Price paid"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/tag_live/form_component.ex:79
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Background color"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:140
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:71
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:59
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:82
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Blank"
|
||||
msgstr ""
|
||||
@ -68,68 +61,63 @@ msgid "Brass"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:44
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:53
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:45
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:64
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Bullet core"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:37
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:52
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:44
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:63
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Bullet type"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:58
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:55
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:47
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:66
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Caliber"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:51
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:54
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:46
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:65
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Cartridge"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:65
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:56
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:48
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:67
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Case material"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:72
|
||||
#: 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:95
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Container"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/topbar.ex:57
|
||||
#: lib/cannery_web/live/container_live/index.ex:36
|
||||
#: lib/cannery_web/live/container_live/index.ex:44
|
||||
#: lib/cannery_web/live/container_live/index.ex:53
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:3
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Containers"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:144
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:72
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:60
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:83
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Corrosive"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:83
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:27
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:91
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Count"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:37
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:38
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:8
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Count:"
|
||||
@ -137,6 +125,7 @@ msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:24
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:27
|
||||
#: lib/cannery_web/live/container_live/index.ex:122
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Description"
|
||||
msgstr ""
|
||||
@ -158,7 +147,6 @@ msgid "Edit Ammo group"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:23
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:63
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Edit Ammo type"
|
||||
msgstr ""
|
||||
@ -184,15 +172,13 @@ msgid "FMJ"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:103
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:65
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:53
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:76
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Grains"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:136
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:70
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:58
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:81
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Incendiary"
|
||||
msgstr ""
|
||||
@ -226,6 +212,7 @@ msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/move_ammo_group_component.ex:69
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:42
|
||||
#: lib/cannery_web/live/container_live/index.ex:123
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Location"
|
||||
msgstr ""
|
||||
@ -242,8 +229,7 @@ msgid "Magazine, Clip, Ammo Box, etc"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:148
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:73
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:61
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:84
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Manufacturer"
|
||||
msgstr ""
|
||||
@ -259,8 +245,9 @@ msgid "My cool ammo can"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:20
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:51
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:62
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:20
|
||||
#: lib/cannery_web/live/container_live/index.ex:121
|
||||
#: lib/cannery_web/live/invite_live/form_component.html.heex:20
|
||||
#: lib/cannery_web/live/tag_live/form_component.ex:75
|
||||
#, elixir-autogen, elixir-format
|
||||
@ -268,11 +255,13 @@ msgid "Name"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:29
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:35
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "New Ammo type"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:31
|
||||
#: lib/cannery_web/live/container_live/index.ex:38
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "New Container"
|
||||
msgstr ""
|
||||
@ -297,7 +286,7 @@ msgstr ""
|
||||
msgid "No Ammo Types"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:134
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:166
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "No ammo for this type"
|
||||
msgstr ""
|
||||
@ -318,7 +307,8 @@ msgstr ""
|
||||
msgid "No tags"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:30
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:37
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:88
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:41
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:88
|
||||
#: lib/cannery_web/live/range_live/form_component.html.heex:29
|
||||
@ -327,7 +317,7 @@ msgstr ""
|
||||
msgid "Notes"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:43
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:51
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:24
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Notes:"
|
||||
@ -339,26 +329,24 @@ msgid "On the bookshelf"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:111
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:66
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:54
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:77
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Pressure"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:85
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:34
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:92
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Price paid"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:62
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:70
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Price paid:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:118
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:67
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:55
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:78
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Primer type"
|
||||
msgstr ""
|
||||
@ -384,11 +372,6 @@ msgstr ""
|
||||
msgid "Settings"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:62
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Show Ammo type"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:83
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Simple:"
|
||||
@ -405,6 +388,7 @@ msgid "Stored in"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/topbar.ex:49
|
||||
#: lib/cannery_web/live/container_live/index.ex:127
|
||||
#: lib/cannery_web/live/tag_live/index.ex:32
|
||||
#: lib/cannery_web/live/tag_live/index.html.heex:3
|
||||
#, elixir-autogen, elixir-format
|
||||
@ -427,14 +411,14 @@ msgid "The self-hosted firearm tracker website"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:132
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:69
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:57
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:80
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Tracer"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/move_ammo_group_component.ex:68
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:35
|
||||
#: lib/cannery_web/live/container_live/index.ex:124
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Type"
|
||||
msgstr ""
|
||||
@ -475,8 +459,8 @@ msgstr ""
|
||||
msgid "No tags for this container"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:79
|
||||
#: lib/cannery_web/components/topbar.ex:81
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:94
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Range"
|
||||
msgstr ""
|
||||
@ -508,12 +492,12 @@ msgstr ""
|
||||
msgid "Record shots"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:49
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:56
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Ammo groups"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:38
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:45
|
||||
#: lib/cannery_web/live/range_live/form_component.html.heex:36
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Date (UTC)"
|
||||
@ -536,12 +520,14 @@ msgid "No shots recorded"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:21
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:25
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Rounds left"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:87
|
||||
#: lib/cannery_web/live/range_live/index.ex:81
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:62
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Rounds shot"
|
||||
msgstr ""
|
||||
@ -556,7 +542,7 @@ msgstr ""
|
||||
msgid "Move Ammo group"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:253
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:97
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Move ammo"
|
||||
msgstr ""
|
||||
@ -571,12 +557,14 @@ msgstr ""
|
||||
msgid "Shot log"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:63
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:145
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:71
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:78
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:159
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:227
|
||||
#: 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
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:110
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:179
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:136
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "$%{amount}"
|
||||
msgstr ""
|
||||
@ -587,36 +575,31 @@ msgid "Bimetal"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:72
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:57
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:49
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:68
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Jacket type"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:79
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:58
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:50
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:69
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Muzzle velocity"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:93
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:61
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:52
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:72
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Powder grains per charge"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:89
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:59
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:51
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:70
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Powder type"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:152
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:74
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:62
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:85
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "UPC"
|
||||
msgstr ""
|
||||
@ -637,19 +620,18 @@ msgstr ""
|
||||
msgid "New password"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:183
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:73
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Stage"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:183
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:73
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Unstage"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:125
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:68
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:56
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:79
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Firing type"
|
||||
msgstr ""
|
||||
@ -665,35 +647,32 @@ msgid "Loading..."
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:27
|
||||
#: lib/cannery_web/live/container_live/show.ex:106
|
||||
#: lib/cannery_web/live/container_live/show.ex:124
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Edit %{name}"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:46
|
||||
#: lib/cannery_web/live/container_live/show.ex:107
|
||||
#: lib/cannery_web/live/container_live/index.ex:65
|
||||
#: lib/cannery_web/live/container_live/show.ex:125
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Edit %{name} tags"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/container_card.ex:63
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:67
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:32
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Rounds:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/show.ex:105
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Show %{name}"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:117
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:116
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:224
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:178
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:142
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "No cost information"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:93
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:87
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "% left"
|
||||
msgstr ""
|
||||
@ -723,21 +702,6 @@ msgstr ""
|
||||
msgid "Rounds used"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:81
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Current # of rounds:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:86
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Total # of rounds"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:89
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Total rounds shot:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/controllers/user_confirmation_controller.ex:8
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Confirm your account"
|
||||
@ -774,19 +738,19 @@ msgstr ""
|
||||
msgid "Copies"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:34
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:40
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Ammo types"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:96
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:66
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Added on"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:49
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:57
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:30
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:97
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:123
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Added on:"
|
||||
msgstr ""
|
||||
@ -855,7 +819,7 @@ msgstr ""
|
||||
msgid "Move Ammo"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:105
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:111
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "No ammo in this container"
|
||||
msgstr ""
|
||||
@ -871,6 +835,7 @@ msgid "This ammo is not in a container"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/container_card.ex:58
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:95
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:27
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Packs:"
|
||||
@ -892,59 +857,237 @@ msgstr ""
|
||||
msgid "Leave \"Uses left\" blank to make invite unlimited"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:87
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Total # of ammo"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:71
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:86
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Container:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:48
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:126
|
||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:23
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:152
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:97
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Show used"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:101
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:61
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Used up on"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:55
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:63
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Used up on:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:197
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:195
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:19
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "%{percentage}%"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.ex:121
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Name: %{name}"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.ex:115
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Notes: %{notes}"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:62
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Rounds fired"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:64
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Rounds fired chart"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.ex:125
|
||||
#: lib/cannery_web/live/range_live/index.ex:114
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Rounds shot: %{count}"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:117
|
||||
#: lib/cannery_web/live/container_live/index.ex:125
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Packs"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:97
|
||||
#: lib/cannery_web/live/container_live/index.ex:126
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Rounds"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:158
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:23
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:103
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "View as table"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:127
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Total ever packs"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:111
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Total ever packs:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:108
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Total ever rounds"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:83
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Total ever rounds:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:122
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Used packs"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:103
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Used packs:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:103
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Used rounds"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:75
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Used rounds:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:33
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Used up!"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:64
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Rounds shot chart"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:27
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Blank:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:13
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Bullet core:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:12
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Bullet type:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:15
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Caliber:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:14
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Cartridge:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:16
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Case material:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:28
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Corrosive:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:24
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Firing type:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:21
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Grains:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:26
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Incendiary:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:17
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Jacket type:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:29
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Manufacturer:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:18
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Muzzle velocity:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:20
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Powder grains per charge:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:19
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Powder type:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:22
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Pressure:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:23
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Primer type:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:25
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Tracer:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:30
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "UPC:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:137
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:132
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Average CPR"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:117
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Edit %{ammo_type_name}"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:39
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:233
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Empty"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:86
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "CPR"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:77
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "CPR:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:84
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Original Count"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:44
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Original Count:"
|
||||
msgstr ""
|
||||
|
@ -15,13 +15,13 @@ msgstr ""
|
||||
msgid "Container must be empty before deleting"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:69
|
||||
#: lib/cannery_web/live/container_live/show.ex:71
|
||||
#: lib/cannery_web/live/container_live/index.ex:88
|
||||
#: lib/cannery_web/live/container_live/show.ex:75
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Could not delete %{name}: %{error}"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:57
|
||||
#: lib/cannery_web/live/container_live/index.ex:76
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Could not find that container"
|
||||
msgstr ""
|
||||
@ -107,23 +107,23 @@ msgstr ""
|
||||
msgid "You are not authorized to view this page."
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery/accounts/user.ex:130
|
||||
#: lib/cannery/accounts/user.ex:138
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "did not change"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery/accounts/user.ex:151
|
||||
#: lib/cannery/accounts/user.ex:159
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "does not match password"
|
||||
msgstr ""
|
||||
|
||||
## From Ecto.Changeset.put_change/3
|
||||
#: lib/cannery/accounts/user.ex:188
|
||||
#: lib/cannery/accounts/user.ex:196
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "is not valid"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery/accounts/user.ex:84
|
||||
#: lib/cannery/accounts/user.ex:92
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "must have the @ sign and no spaces"
|
||||
msgstr ""
|
||||
@ -138,13 +138,13 @@ msgstr ""
|
||||
msgid "Tag could not be added"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery/activity_log/shot_group.ex:115
|
||||
#: lib/cannery/activity_log/shot_group.ex:123
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Count must be at least 1"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery/activity_log/shot_group.ex:74
|
||||
#: lib/cannery/activity_log/shot_group.ex:111
|
||||
#: lib/cannery/activity_log/shot_group.ex:82
|
||||
#: lib/cannery/activity_log/shot_group.ex:119
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Count must be less than %{count}"
|
||||
msgstr ""
|
||||
@ -160,27 +160,27 @@ msgstr ""
|
||||
msgid "Tag could not be removed"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.ex:156
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.ex:157
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Could not parse number of copies"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.ex:141
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.ex:142
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Invalid number of copies, must be between 1 and %{max}. Was %{multiplier}"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery/ammo.ex:535
|
||||
#: lib/cannery/ammo.ex:609
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Invalid multiplier"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery/ammo/ammo_group.ex:84
|
||||
#: lib/cannery/ammo/ammo_group.ex:94
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Please select an ammo type and container"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery/activity_log/shot_group.ex:69
|
||||
#: lib/cannery/activity_log/shot_group.ex:77
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Please select a valid user and ammo group"
|
||||
msgstr ""
|
||||
|
@ -11,16 +11,16 @@ msgstr ""
|
||||
"Language: en\n"
|
||||
"Plural-Forms: nplurals=2\n"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.ex:85
|
||||
#: lib/cannery_web/live/container_live/form_component.ex:85
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.ex:86
|
||||
#: lib/cannery_web/live/container_live/form_component.ex:89
|
||||
#: lib/cannery_web/live/invite_live/form_component.ex:80
|
||||
#: lib/cannery_web/live/tag_live/form_component.ex:126
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "%{name} created successfully"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:41
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:28
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:47
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:56
|
||||
#: lib/cannery_web/live/invite_live/index.ex:53
|
||||
#: lib/cannery_web/live/invite_live/index.ex:133
|
||||
#: lib/cannery_web/live/tag_live/index.ex:38
|
||||
@ -38,8 +38,8 @@ msgstr ""
|
||||
msgid "%{name} enabled succesfully"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:62
|
||||
#: lib/cannery_web/live/container_live/show.ex:61
|
||||
#: lib/cannery_web/live/container_live/index.ex:81
|
||||
#: lib/cannery_web/live/container_live/show.ex:65
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "%{name} has been deleted"
|
||||
msgstr ""
|
||||
@ -50,7 +50,7 @@ msgid "%{name} updated succesfully"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.ex:67
|
||||
#: lib/cannery_web/live/container_live/form_component.ex:67
|
||||
#: lib/cannery_web/live/container_live/form_component.ex:70
|
||||
#: lib/cannery_web/live/invite_live/form_component.ex:62
|
||||
#: lib/cannery_web/live/tag_live/form_component.ex:108
|
||||
#, elixir-autogen, elixir-format
|
||||
@ -62,7 +62,7 @@ msgstr ""
|
||||
msgid "A link to confirm your email change has been sent to the new address."
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:56
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:64
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Ammo group deleted succesfully"
|
||||
msgstr ""
|
||||
@ -73,7 +73,8 @@ msgstr ""
|
||||
msgid "Are you sure you want to delete %{email}? This action is permanent!"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:48
|
||||
#: lib/cannery_web/live/container_live/index.ex:223
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:73
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:51
|
||||
#: lib/cannery_web/live/tag_live/index.html.heex:39
|
||||
#, elixir-autogen, elixir-format
|
||||
@ -85,13 +86,13 @@ msgstr ""
|
||||
msgid "Are you sure you want to delete the invite for %{name}?"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:225
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:132
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:75
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to delete this ammo?"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:146
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:155
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to delete your account?"
|
||||
msgstr ""
|
||||
@ -146,7 +147,7 @@ msgstr ""
|
||||
msgid "Register to setup %{name}"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:48
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:55
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:74
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:157
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:52
|
||||
@ -172,7 +173,7 @@ msgstr ""
|
||||
msgid "%{name} added successfully"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/show.ex:37
|
||||
#: lib/cannery_web/live/container_live/show.ex:41
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "%{tag_name} has been removed from %{container_name}"
|
||||
msgstr ""
|
||||
@ -193,7 +194,7 @@ msgid "Are you sure you want to unstage this ammo?"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:132
|
||||
#: lib/cannery_web/live/range_live/index.ex:181
|
||||
#: lib/cannery_web/live/range_live/index.ex:159
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to delete this shot record?"
|
||||
msgstr ""
|
||||
@ -265,14 +266,14 @@ msgstr ""
|
||||
msgid "Ammo updated successfully"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.ex:177
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.ex:178
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Ammo added successfully"
|
||||
msgid_plural "Ammo added successfully"
|
||||
msgstr[0] ""
|
||||
msgstr[1] ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:163
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:232
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:28
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Are you sure you want to delete %{name}? This will delete all %{name} type ammo as well!"
|
||||
|
@ -15,13 +15,13 @@ msgstr ""
|
||||
msgid "Container must be empty before deleting"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:69
|
||||
#: lib/cannery_web/live/container_live/show.ex:71
|
||||
#: lib/cannery_web/live/container_live/index.ex:88
|
||||
#: lib/cannery_web/live/container_live/show.ex:75
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Could not delete %{name}: %{error}"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:57
|
||||
#: lib/cannery_web/live/container_live/index.ex:76
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Could not find that container"
|
||||
msgstr ""
|
||||
@ -107,22 +107,22 @@ msgstr ""
|
||||
msgid "You are not authorized to view this page."
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery/accounts/user.ex:130
|
||||
#: lib/cannery/accounts/user.ex:138
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "did not change"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery/accounts/user.ex:151
|
||||
#: lib/cannery/accounts/user.ex:159
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "does not match password"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery/accounts/user.ex:188
|
||||
#: lib/cannery/accounts/user.ex:196
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "is not valid"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery/accounts/user.ex:84
|
||||
#: lib/cannery/accounts/user.ex:92
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "must have the @ sign and no spaces"
|
||||
msgstr ""
|
||||
@ -137,13 +137,13 @@ msgstr ""
|
||||
msgid "Tag could not be added"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery/activity_log/shot_group.ex:115
|
||||
#: lib/cannery/activity_log/shot_group.ex:123
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Count must be at least 1"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery/activity_log/shot_group.ex:74
|
||||
#: lib/cannery/activity_log/shot_group.ex:111
|
||||
#: lib/cannery/activity_log/shot_group.ex:82
|
||||
#: lib/cannery/activity_log/shot_group.ex:119
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Count must be less than %{count}"
|
||||
msgstr ""
|
||||
@ -159,27 +159,27 @@ msgstr ""
|
||||
msgid "Tag could not be removed"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.ex:156
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.ex:157
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Could not parse number of copies"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.ex:141
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.ex:142
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Invalid number of copies, must be between 1 and %{max}. Was %{multiplier}"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery/ammo.ex:535
|
||||
#: lib/cannery/ammo.ex:609
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Invalid multiplier"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery/ammo/ammo_group.ex:84
|
||||
#: lib/cannery/ammo/ammo_group.ex:94
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Please select an ammo type and container"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery/activity_log/shot_group.ex:69
|
||||
#: lib/cannery/activity_log/shot_group.ex:77
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Please select a valid user and ammo group"
|
||||
msgstr ""
|
||||
|
@ -24,6 +24,7 @@ msgstr ""
|
||||
## date. Leave "msgstr"s empty as changing them here has no
|
||||
## effect: edit them in PO (.po) files instead.
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:44
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:50
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:40
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Add Ammo"
|
||||
@ -61,7 +62,7 @@ msgstr "Cambiar contraseña"
|
||||
msgid "Create Invite"
|
||||
msgstr "Crear Invitación"
|
||||
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:148
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:157
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Delete User"
|
||||
msgstr "Eliminar cuenta de Usuario"
|
||||
@ -132,7 +133,7 @@ msgstr ""
|
||||
msgid "Reset password"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:46
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:53
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:73
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:156
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:50
|
||||
@ -168,7 +169,7 @@ msgstr ""
|
||||
msgid "Why not get some ready to shoot?"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:190
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:80
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:101
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:38
|
||||
#, elixir-autogen, elixir-format
|
||||
@ -245,11 +246,6 @@ msgstr ""
|
||||
msgid "Set Unlimited"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:97
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Show used"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:86
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:31
|
||||
#, elixir-autogen, elixir-format
|
||||
@ -261,3 +257,8 @@ msgstr ""
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Unstage from range"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:148
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Export Data as JSON"
|
||||
msgstr ""
|
||||
|
@ -52,26 +52,19 @@ msgstr ""
|
||||
msgid "Ammo"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:96
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:21
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:90
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Ammo type"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:88
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:106
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Average Price paid"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/tag_live/form_component.ex:79
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Background color"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:140
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:71
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:59
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:82
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Blank"
|
||||
msgstr ""
|
||||
@ -82,68 +75,63 @@ msgid "Brass"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:44
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:53
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:45
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:64
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Bullet core"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:37
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:52
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:44
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:63
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Bullet type"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:58
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:55
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:47
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:66
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Caliber"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:51
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:54
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:46
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:65
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Cartridge"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:65
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:56
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:48
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:67
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Case material"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:72
|
||||
#: 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:95
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Container"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/topbar.ex:57
|
||||
#: lib/cannery_web/live/container_live/index.ex:36
|
||||
#: lib/cannery_web/live/container_live/index.ex:44
|
||||
#: lib/cannery_web/live/container_live/index.ex:53
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:3
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Containers"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:144
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:72
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:60
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:83
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Corrosive"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:83
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:27
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:91
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Count"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:37
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:38
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:8
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Count:"
|
||||
@ -151,6 +139,7 @@ msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:24
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:27
|
||||
#: lib/cannery_web/live/container_live/index.ex:122
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Description"
|
||||
msgstr ""
|
||||
@ -172,7 +161,6 @@ msgid "Edit Ammo group"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:23
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:63
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Edit Ammo type"
|
||||
msgstr ""
|
||||
@ -198,15 +186,13 @@ msgid "FMJ"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:103
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:65
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:53
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:76
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Grains"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:136
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:70
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:58
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:81
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Incendiary"
|
||||
msgstr ""
|
||||
@ -240,6 +226,7 @@ msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/move_ammo_group_component.ex:69
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:42
|
||||
#: lib/cannery_web/live/container_live/index.ex:123
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Location"
|
||||
msgstr ""
|
||||
@ -256,8 +243,7 @@ msgid "Magazine, Clip, Ammo Box, etc"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:148
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:73
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:61
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:84
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Manufacturer"
|
||||
msgstr ""
|
||||
@ -273,8 +259,9 @@ msgid "My cool ammo can"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:20
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:51
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:62
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:20
|
||||
#: lib/cannery_web/live/container_live/index.ex:121
|
||||
#: lib/cannery_web/live/invite_live/form_component.html.heex:20
|
||||
#: lib/cannery_web/live/tag_live/form_component.ex:75
|
||||
#, elixir-autogen, elixir-format
|
||||
@ -282,11 +269,13 @@ msgid "Name"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:29
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:35
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "New Ammo type"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:31
|
||||
#: lib/cannery_web/live/container_live/index.ex:38
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "New Container"
|
||||
msgstr ""
|
||||
@ -311,7 +300,7 @@ msgstr ""
|
||||
msgid "No Ammo Types"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:134
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:166
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "No ammo for this type"
|
||||
msgstr ""
|
||||
@ -332,7 +321,8 @@ msgstr ""
|
||||
msgid "No tags"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:30
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:37
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:88
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:41
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:88
|
||||
#: lib/cannery_web/live/range_live/form_component.html.heex:29
|
||||
@ -341,7 +331,7 @@ msgstr ""
|
||||
msgid "Notes"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:43
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:51
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:24
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Notes:"
|
||||
@ -353,26 +343,24 @@ msgid "On the bookshelf"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:111
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:66
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:54
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:77
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Pressure"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:85
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:34
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:92
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Price paid"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:62
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:70
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Price paid:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:118
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:67
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:55
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:78
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Primer type"
|
||||
msgstr ""
|
||||
@ -398,11 +386,6 @@ msgstr ""
|
||||
msgid "Settings"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:62
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Show Ammo type"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:83
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Simple:"
|
||||
@ -419,6 +402,7 @@ msgid "Stored in"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/topbar.ex:49
|
||||
#: lib/cannery_web/live/container_live/index.ex:127
|
||||
#: lib/cannery_web/live/tag_live/index.ex:32
|
||||
#: lib/cannery_web/live/tag_live/index.html.heex:3
|
||||
#, elixir-autogen, elixir-format
|
||||
@ -441,14 +425,14 @@ msgid "The self-hosted firearm tracker website"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:132
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:69
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:57
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:80
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Tracer"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/move_ammo_group_component.ex:68
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:35
|
||||
#: lib/cannery_web/live/container_live/index.ex:124
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Type"
|
||||
msgstr ""
|
||||
@ -489,8 +473,8 @@ msgstr ""
|
||||
msgid "No tags for this container"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:79
|
||||
#: lib/cannery_web/components/topbar.ex:81
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:94
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Range"
|
||||
msgstr ""
|
||||
@ -522,12 +506,12 @@ msgstr ""
|
||||
msgid "Record shots"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:49
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:56
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Ammo groups"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:38
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:45
|
||||
#: lib/cannery_web/live/range_live/form_component.html.heex:36
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Date (UTC)"
|
||||
@ -550,12 +534,14 @@ msgid "No shots recorded"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:21
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:25
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Rounds left"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:87
|
||||
#: lib/cannery_web/live/range_live/index.ex:81
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:62
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Rounds shot"
|
||||
msgstr ""
|
||||
@ -570,7 +556,7 @@ msgstr ""
|
||||
msgid "Move Ammo group"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:253
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:97
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Move ammo"
|
||||
msgstr ""
|
||||
@ -585,12 +571,14 @@ msgstr ""
|
||||
msgid "Shot log"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:63
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:145
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:71
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:78
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:159
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:227
|
||||
#: 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
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:110
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:179
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:136
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "$%{amount}"
|
||||
msgstr ""
|
||||
@ -601,36 +589,31 @@ msgid "Bimetal"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:72
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:57
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:49
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:68
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Jacket type"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:79
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:58
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:50
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:69
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Muzzle velocity"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:93
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:61
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:52
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:72
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Powder grains per charge"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:89
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:59
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:51
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:70
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Powder type"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:152
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:74
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:62
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:85
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "UPC"
|
||||
msgstr ""
|
||||
@ -651,19 +634,18 @@ msgstr ""
|
||||
msgid "New password"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:183
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:73
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Stage"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:183
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:73
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Unstage"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:125
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:68
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:56
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:79
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Firing type"
|
||||
msgstr ""
|
||||
@ -679,35 +661,32 @@ msgid "Loading..."
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:27
|
||||
#: lib/cannery_web/live/container_live/show.ex:106
|
||||
#: lib/cannery_web/live/container_live/show.ex:124
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Edit %{name}"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:46
|
||||
#: lib/cannery_web/live/container_live/show.ex:107
|
||||
#: lib/cannery_web/live/container_live/index.ex:65
|
||||
#: lib/cannery_web/live/container_live/show.ex:125
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Edit %{name} tags"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/container_card.ex:63
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:67
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:32
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Rounds:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/show.ex:105
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Show %{name}"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:117
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:116
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:224
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:178
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:142
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "No cost information"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:93
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:87
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "% left"
|
||||
msgstr ""
|
||||
@ -737,21 +716,6 @@ msgstr ""
|
||||
msgid "Rounds used"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:81
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Current # of rounds:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:86
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Total # of rounds"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:89
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Total rounds shot:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/controllers/user_confirmation_controller.ex:8
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Confirm your account"
|
||||
@ -788,19 +752,19 @@ msgstr ""
|
||||
msgid "Copies"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:34
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:40
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Ammo types"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:96
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:66
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Added on"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:49
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:57
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:30
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:97
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:123
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Added on:"
|
||||
msgstr ""
|
||||
@ -869,7 +833,7 @@ msgstr ""
|
||||
msgid "Move Ammo"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:105
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:111
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "No ammo in this container"
|
||||
msgstr ""
|
||||
@ -885,6 +849,7 @@ msgid "This ammo is not in a container"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/container_card.ex:58
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:95
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:27
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Packs:"
|
||||
@ -906,59 +871,237 @@ msgstr ""
|
||||
msgid "Leave \"Uses left\" blank to make invite unlimited"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:87
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Total # of ammo"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:71
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:86
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Container:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:48
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:126
|
||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:23
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:152
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:97
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Show used"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:101
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:61
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Used up on"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:55
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:63
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Used up on:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:197
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:195
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:19
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "%{percentage}%"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.ex:121
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Name: %{name}"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.ex:115
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Notes: %{notes}"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:62
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Rounds fired"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:64
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Rounds fired chart"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.ex:125
|
||||
#: lib/cannery_web/live/range_live/index.ex:114
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Rounds shot: %{count}"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:117
|
||||
#: lib/cannery_web/live/container_live/index.ex:125
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Packs"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:97
|
||||
#: lib/cannery_web/live/container_live/index.ex:126
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Rounds"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:158
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:23
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:103
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "View as table"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:127
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Total ever packs"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:111
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Total ever packs:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:108
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Total ever rounds"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:83
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Total ever rounds:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:122
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Used packs"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:103
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Used packs:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:103
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Used rounds"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:75
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Used rounds:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:33
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Used up!"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:64
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Rounds shot chart"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:27
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Blank:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:13
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Bullet core:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:12
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Bullet type:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:15
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Caliber:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:14
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Cartridge:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:16
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Case material:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:28
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Corrosive:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:24
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Firing type:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:21
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Grains:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:26
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Incendiary:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:17
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Jacket type:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:29
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Manufacturer:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:18
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Muzzle velocity:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:20
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Powder grains per charge:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:19
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Powder type:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:22
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Pressure:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:23
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Primer type:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:25
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Tracer:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:30
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "UPC:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:137
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:132
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Average CPR"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:117
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Edit %{ammo_type_name}"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:39
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:233
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Empty"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:86
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "CPR"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:77
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "CPR:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:84
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Original Count"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:44
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Original Count:"
|
||||
msgstr ""
|
||||
|
@ -28,13 +28,13 @@ msgstr ""
|
||||
msgid "Container must be empty before deleting"
|
||||
msgstr "el Contenedor debe estar vació antes de borrarlo"
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:69
|
||||
#: lib/cannery_web/live/container_live/show.ex:71
|
||||
#: lib/cannery_web/live/container_live/index.ex:88
|
||||
#: lib/cannery_web/live/container_live/show.ex:75
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Could not delete %{name}: %{error}"
|
||||
msgstr "No se pudo eliminar %{name}: %{error}"
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:57
|
||||
#: lib/cannery_web/live/container_live/index.ex:76
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Could not find that container"
|
||||
msgstr ""
|
||||
@ -123,22 +123,22 @@ msgstr ""
|
||||
msgid "You are not authorized to view this page."
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery/accounts/user.ex:130
|
||||
#: lib/cannery/accounts/user.ex:138
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "did not change"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery/accounts/user.ex:151
|
||||
#: lib/cannery/accounts/user.ex:159
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "does not match password"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery/accounts/user.ex:188
|
||||
#: lib/cannery/accounts/user.ex:196
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "is not valid"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery/accounts/user.ex:84
|
||||
#: lib/cannery/accounts/user.ex:92
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "must have the @ sign and no spaces"
|
||||
msgstr ""
|
||||
@ -153,13 +153,13 @@ msgstr ""
|
||||
msgid "Tag could not be added"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery/activity_log/shot_group.ex:115
|
||||
#: lib/cannery/activity_log/shot_group.ex:123
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Count must be at least 1"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery/activity_log/shot_group.ex:74
|
||||
#: lib/cannery/activity_log/shot_group.ex:111
|
||||
#: lib/cannery/activity_log/shot_group.ex:82
|
||||
#: lib/cannery/activity_log/shot_group.ex:119
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Count must be less than %{count}"
|
||||
msgstr ""
|
||||
@ -175,27 +175,27 @@ msgstr ""
|
||||
msgid "Tag could not be removed"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.ex:156
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.ex:157
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Could not parse number of copies"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.ex:141
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.ex:142
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Invalid number of copies, must be between 1 and %{max}. Was %{multiplier}"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery/ammo.ex:535
|
||||
#: lib/cannery/ammo.ex:609
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Invalid multiplier"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery/ammo/ammo_group.ex:84
|
||||
#: lib/cannery/ammo/ammo_group.ex:94
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Please select an ammo type and container"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery/activity_log/shot_group.ex:69
|
||||
#: lib/cannery/activity_log/shot_group.ex:77
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Please select a valid user and ammo group"
|
||||
msgstr ""
|
||||
|
@ -23,16 +23,16 @@ msgstr ""
|
||||
## Run "mix gettext.extract" to bring this file up to
|
||||
## date. Leave "msgstr"s empty as changing them here has no
|
||||
## effect: edit them in PO (.po) files instead.
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.ex:85
|
||||
#: lib/cannery_web/live/container_live/form_component.ex:85
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.ex:86
|
||||
#: lib/cannery_web/live/container_live/form_component.ex:89
|
||||
#: lib/cannery_web/live/invite_live/form_component.ex:80
|
||||
#: lib/cannery_web/live/tag_live/form_component.ex:126
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "%{name} created successfully"
|
||||
msgstr "%{name} creado exitosamente"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:41
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:28
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:47
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:56
|
||||
#: lib/cannery_web/live/invite_live/index.ex:53
|
||||
#: lib/cannery_web/live/invite_live/index.ex:133
|
||||
#: lib/cannery_web/live/tag_live/index.ex:38
|
||||
@ -50,8 +50,8 @@ msgstr "%{name} desactivado exitosamente"
|
||||
msgid "%{name} enabled succesfully"
|
||||
msgstr "%{name} activado exitosamente"
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:62
|
||||
#: lib/cannery_web/live/container_live/show.ex:61
|
||||
#: lib/cannery_web/live/container_live/index.ex:81
|
||||
#: lib/cannery_web/live/container_live/show.ex:65
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "%{name} has been deleted"
|
||||
msgstr "%{name} ha sido borrado"
|
||||
@ -62,7 +62,7 @@ msgid "%{name} updated succesfully"
|
||||
msgstr "%{name} actualizado exitosamente"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.ex:67
|
||||
#: lib/cannery_web/live/container_live/form_component.ex:67
|
||||
#: lib/cannery_web/live/container_live/form_component.ex:70
|
||||
#: lib/cannery_web/live/invite_live/form_component.ex:62
|
||||
#: lib/cannery_web/live/tag_live/form_component.ex:108
|
||||
#, elixir-autogen, elixir-format
|
||||
@ -76,7 +76,7 @@ msgstr ""
|
||||
"Un enlace para confirmar el correo electrónico ha sido enviado a la nueva "
|
||||
"dirección."
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:56
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:64
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Ammo group deleted succesfully"
|
||||
msgstr "Grupo de Munición borrado exitosamente"
|
||||
@ -87,7 +87,8 @@ msgstr "Grupo de Munición borrado exitosamente"
|
||||
msgid "Are you sure you want to delete %{email}? This action is permanent!"
|
||||
msgstr "Está seguro que desea eliminar %{email}? Esta acción es permanente!"
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:48
|
||||
#: lib/cannery_web/live/container_live/index.ex:223
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:73
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:51
|
||||
#: lib/cannery_web/live/tag_live/index.html.heex:39
|
||||
#, elixir-autogen, elixir-format
|
||||
@ -99,13 +100,13 @@ msgstr "Está seguro que desea eliminar %{name}?"
|
||||
msgid "Are you sure you want to delete the invite for %{name}?"
|
||||
msgstr "Está seguro que quiere eliminar la invitación para %{name}?"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:225
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:132
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:75
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to delete this ammo?"
|
||||
msgstr "Está seguro que desea eliminar esta munición?"
|
||||
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:146
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:155
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to delete your account?"
|
||||
msgstr "Está seguro que desea eliminar su cuenta?"
|
||||
@ -164,7 +165,7 @@ msgstr "Por favor chequea el correo para verificar tu cuenta"
|
||||
msgid "Register to setup %{name}"
|
||||
msgstr "Regístrese para configurar %{name}"
|
||||
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:48
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:55
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:74
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:157
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:52
|
||||
@ -191,7 +192,7 @@ msgstr ""
|
||||
msgid "%{name} added successfully"
|
||||
msgstr "%{name} añadido exitosamente"
|
||||
|
||||
#: lib/cannery_web/live/container_live/show.ex:37
|
||||
#: lib/cannery_web/live/container_live/show.ex:41
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "%{tag_name} has been removed from %{container_name}"
|
||||
msgstr "se ha removido %{tag_name} de %{container_name}"
|
||||
@ -212,7 +213,7 @@ msgid "Are you sure you want to unstage this ammo?"
|
||||
msgstr "Está seguro que desea desmontar esta munición?"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:132
|
||||
#: lib/cannery_web/live/range_live/index.ex:181
|
||||
#: lib/cannery_web/live/range_live/index.ex:159
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to delete this shot record?"
|
||||
msgstr ""
|
||||
@ -284,14 +285,14 @@ msgstr ""
|
||||
msgid "Ammo updated successfully"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.ex:177
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.ex:178
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Ammo added successfully"
|
||||
msgid_plural "Ammo added successfully"
|
||||
msgstr[0] ""
|
||||
msgstr[1] ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:163
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:232
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:28
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Are you sure you want to delete %{name}? This will delete all %{name} type ammo as well!"
|
||||
|
@ -24,6 +24,7 @@ msgstr ""
|
||||
# # date. Leave "msgstr"s empty as changing them here has no
|
||||
# # effect: edit them in PO (.po) files instead.
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:44
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:50
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:40
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Add Ammo"
|
||||
@ -61,7 +62,7 @@ msgstr "Changer le mot de passe"
|
||||
msgid "Create Invite"
|
||||
msgstr "Créer une invitation"
|
||||
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:148
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:157
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Delete User"
|
||||
msgstr "Supprimer utilisateur"
|
||||
@ -132,7 +133,7 @@ msgstr "Renvoyer les instructions de confirmation"
|
||||
msgid "Reset password"
|
||||
msgstr "Réinitialisé le mot de passe"
|
||||
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:46
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:53
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:73
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:156
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:50
|
||||
@ -168,7 +169,7 @@ msgstr "Munition préparée"
|
||||
msgid "Why not get some ready to shoot?"
|
||||
msgstr "Pourquoi pas en préparer pour tirer ?"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:190
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:80
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:101
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:38
|
||||
#, elixir-autogen, elixir-format
|
||||
@ -245,11 +246,6 @@ msgstr ""
|
||||
msgid "Set Unlimited"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:97
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Show used"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:86
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:31
|
||||
#, elixir-autogen, elixir-format
|
||||
@ -261,3 +257,8 @@ msgstr ""
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Unstage from range"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:148
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Export Data as JSON"
|
||||
msgstr ""
|
||||
|
@ -52,26 +52,19 @@ msgstr "Administrateur·ices :"
|
||||
msgid "Ammo"
|
||||
msgstr "Munition"
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:96
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:21
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:90
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Ammo type"
|
||||
msgstr "Type de munition"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:88
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:106
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Average Price paid"
|
||||
msgstr "Prix acheté moyen"
|
||||
|
||||
#: lib/cannery_web/live/tag_live/form_component.ex:79
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Background color"
|
||||
msgstr "Couleur de fond"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:140
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:71
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:59
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:82
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Blank"
|
||||
msgstr "Vide"
|
||||
@ -82,68 +75,63 @@ msgid "Brass"
|
||||
msgstr "Cuivre"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:44
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:53
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:45
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:64
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Bullet core"
|
||||
msgstr "Noyau de balle"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:37
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:52
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:44
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:63
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Bullet type"
|
||||
msgstr "Type de balle"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:58
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:55
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:47
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:66
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Caliber"
|
||||
msgstr "Calibre"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:51
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:54
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:46
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:65
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Cartridge"
|
||||
msgstr "Cartouche"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:65
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:56
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:48
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:67
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Case material"
|
||||
msgstr "Matériau de la caisse"
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:72
|
||||
#: 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:95
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Container"
|
||||
msgstr "Conteneur"
|
||||
|
||||
#: lib/cannery_web/components/topbar.ex:57
|
||||
#: lib/cannery_web/live/container_live/index.ex:36
|
||||
#: lib/cannery_web/live/container_live/index.ex:44
|
||||
#: lib/cannery_web/live/container_live/index.ex:53
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:3
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Containers"
|
||||
msgstr "Conteneurs"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:144
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:72
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:60
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:83
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Corrosive"
|
||||
msgstr "Corrosive"
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:83
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:27
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:91
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Count"
|
||||
msgstr "Quantité"
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:37
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:38
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:8
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Count:"
|
||||
@ -151,6 +139,7 @@ msgstr "Quantité :"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:24
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:27
|
||||
#: lib/cannery_web/live/container_live/index.ex:122
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Description"
|
||||
msgstr "Description"
|
||||
@ -172,7 +161,6 @@ msgid "Edit Ammo group"
|
||||
msgstr "Éditer le groupe de munition"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:23
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:63
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Edit Ammo type"
|
||||
msgstr "Éditer le type de munition"
|
||||
@ -198,15 +186,13 @@ msgid "FMJ"
|
||||
msgstr "FMJ"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:103
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:65
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:53
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:76
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Grains"
|
||||
msgstr "Graines"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:136
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:70
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:58
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:81
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Incendiary"
|
||||
msgstr "Incendiaire"
|
||||
@ -240,6 +226,7 @@ msgstr "Me garder authentifié durant 60 jours"
|
||||
|
||||
#: lib/cannery_web/components/move_ammo_group_component.ex:69
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:42
|
||||
#: lib/cannery_web/live/container_live/index.ex:123
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Location"
|
||||
msgstr "Localisation"
|
||||
@ -256,8 +243,7 @@ msgid "Magazine, Clip, Ammo Box, etc"
|
||||
msgstr "Chargeur, lame-chargeur, boite de munition, etc."
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:148
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:73
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:61
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:84
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Manufacturer"
|
||||
msgstr "Fabricant"
|
||||
@ -273,8 +259,9 @@ msgid "My cool ammo can"
|
||||
msgstr "Ma superbe boite de munition"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:20
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:51
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:62
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:20
|
||||
#: lib/cannery_web/live/container_live/index.ex:121
|
||||
#: lib/cannery_web/live/invite_live/form_component.html.heex:20
|
||||
#: lib/cannery_web/live/tag_live/form_component.ex:75
|
||||
#, elixir-autogen, elixir-format
|
||||
@ -282,11 +269,13 @@ msgid "Name"
|
||||
msgstr "Nom"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:29
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:35
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "New Ammo type"
|
||||
msgstr "Nouveau type de munition"
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:31
|
||||
#: lib/cannery_web/live/container_live/index.ex:38
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "New Container"
|
||||
msgstr "Nouveau conteneur"
|
||||
@ -311,7 +300,7 @@ msgstr "Aucune munition"
|
||||
msgid "No Ammo Types"
|
||||
msgstr "Aucun type de munition"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:134
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:166
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "No ammo for this type"
|
||||
msgstr "Aucune munition pour ce type"
|
||||
@ -332,7 +321,8 @@ msgstr "Aucune invitation"
|
||||
msgid "No tags"
|
||||
msgstr "Aucun tag"
|
||||
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:30
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:37
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:88
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:41
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:88
|
||||
#: lib/cannery_web/live/range_live/form_component.html.heex:29
|
||||
@ -341,7 +331,7 @@ msgstr "Aucun tag"
|
||||
msgid "Notes"
|
||||
msgstr "Notes"
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:43
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:51
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:24
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Notes:"
|
||||
@ -353,26 +343,24 @@ msgid "On the bookshelf"
|
||||
msgstr "Sur l’étagère"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:111
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:66
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:54
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:77
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Pressure"
|
||||
msgstr "Pression"
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:85
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:34
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:92
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Price paid"
|
||||
msgstr "Prix payé"
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:62
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:70
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Price paid:"
|
||||
msgstr "Prix payé :"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:118
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:67
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:55
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:78
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Primer type"
|
||||
msgstr "Type d’amorce"
|
||||
@ -400,11 +388,6 @@ msgstr ""
|
||||
msgid "Settings"
|
||||
msgstr "Paramètres"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:62
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Show Ammo type"
|
||||
msgstr "Montrer le type de munition"
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:83
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Simple:"
|
||||
@ -421,6 +404,7 @@ msgid "Stored in"
|
||||
msgstr "Est stocké dans"
|
||||
|
||||
#: lib/cannery_web/components/topbar.ex:49
|
||||
#: lib/cannery_web/live/container_live/index.ex:127
|
||||
#: lib/cannery_web/live/tag_live/index.ex:32
|
||||
#: lib/cannery_web/live/tag_live/index.html.heex:3
|
||||
#, elixir-autogen, elixir-format
|
||||
@ -445,14 +429,14 @@ msgid "The self-hosted firearm tracker website"
|
||||
msgstr "Le site web de suivi d’arme à feux auto-hébergé"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:132
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:69
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:57
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:80
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Tracer"
|
||||
msgstr "Traceuse"
|
||||
|
||||
#: lib/cannery_web/components/move_ammo_group_component.ex:68
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:35
|
||||
#: lib/cannery_web/live/container_live/index.ex:124
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Type"
|
||||
msgstr "Type"
|
||||
@ -493,8 +477,8 @@ msgstr "Vos données restent avec vous, point final"
|
||||
msgid "No tags for this container"
|
||||
msgstr "Aucun tag pour ce conteneur"
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:79
|
||||
#: lib/cannery_web/components/topbar.ex:81
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:94
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Range"
|
||||
msgstr "Portée"
|
||||
@ -526,12 +510,12 @@ msgstr "Aucune munition sélectionnée"
|
||||
msgid "Record shots"
|
||||
msgstr "Tirs enregistrés"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:49
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:56
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Ammo groups"
|
||||
msgstr "Groupes de munition"
|
||||
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:38
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:45
|
||||
#: lib/cannery_web/live/range_live/form_component.html.heex:36
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Date (UTC)"
|
||||
@ -554,12 +538,14 @@ msgid "No shots recorded"
|
||||
msgstr "Aucun tir enregistré"
|
||||
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:21
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:25
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Rounds left"
|
||||
msgstr "Cartouches restantes"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:87
|
||||
#: lib/cannery_web/live/range_live/index.ex:81
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:62
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Rounds shot"
|
||||
msgstr "Cartouches tirées"
|
||||
@ -574,7 +560,7 @@ msgstr "Enregistrements de tir"
|
||||
msgid "Move Ammo group"
|
||||
msgstr "Déplacer le groupe de munition"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:253
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:97
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Move ammo"
|
||||
msgstr "Déplacer munition"
|
||||
@ -589,12 +575,14 @@ msgstr "Aucun autre conteneur"
|
||||
msgid "Shot log"
|
||||
msgstr "Évènements de tir"
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:63
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:145
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:71
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:78
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:159
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:227
|
||||
#: 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
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:110
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:179
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:136
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "$%{amount}"
|
||||
msgstr "%{amount} $"
|
||||
@ -605,36 +593,31 @@ msgid "Bimetal"
|
||||
msgstr "Bi-métal"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:72
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:57
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:49
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:68
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Jacket type"
|
||||
msgstr "Type de douille"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:79
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:58
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:50
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:69
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Muzzle velocity"
|
||||
msgstr "Vélocité du canon"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:93
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:61
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:52
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:72
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Powder grains per charge"
|
||||
msgstr "Graines de poudre par charge"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:89
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:59
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:51
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:70
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Powder type"
|
||||
msgstr "Type de poudre"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:152
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:74
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:62
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:85
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "UPC"
|
||||
msgstr "UPC"
|
||||
@ -655,19 +638,18 @@ msgstr "Mot de passe actuel"
|
||||
msgid "New password"
|
||||
msgstr "Nouveau mot de passe"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:183
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:73
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Stage"
|
||||
msgstr "Sélectionné"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:183
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:73
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Unstage"
|
||||
msgstr "Désélectionner"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:125
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:68
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:56
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:79
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Firing type"
|
||||
msgstr "Type d’allumage"
|
||||
@ -683,35 +665,32 @@ msgid "Loading..."
|
||||
msgstr "Chargement en cours…"
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:27
|
||||
#: lib/cannery_web/live/container_live/show.ex:106
|
||||
#: lib/cannery_web/live/container_live/show.ex:124
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Edit %{name}"
|
||||
msgstr "Éditer %{name}"
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:46
|
||||
#: lib/cannery_web/live/container_live/show.ex:107
|
||||
#: lib/cannery_web/live/container_live/index.ex:65
|
||||
#: lib/cannery_web/live/container_live/show.ex:125
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Edit %{name} tags"
|
||||
msgstr "Éditer les tags de %{name}"
|
||||
|
||||
#: lib/cannery_web/components/container_card.ex:63
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:67
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:32
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Rounds:"
|
||||
msgstr "Cartouches :"
|
||||
|
||||
#: lib/cannery_web/live/container_live/show.ex:105
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Show %{name}"
|
||||
msgstr "Montrer %{name}"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:117
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:116
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:224
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:178
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:142
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "No cost information"
|
||||
msgstr "Aucune information de prix"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:93
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:87
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "% left"
|
||||
msgstr "% restante"
|
||||
@ -741,21 +720,6 @@ msgstr "Pourcentage restant :"
|
||||
msgid "Rounds used"
|
||||
msgstr "Cartouches utilisées"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:81
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Current # of rounds:"
|
||||
msgstr "Quantité actuelle de cartouches :"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:86
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Total # of rounds"
|
||||
msgstr "Quantité de cartouches"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:89
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Total rounds shot:"
|
||||
msgstr "Nombre totale de cartouches tirées :"
|
||||
|
||||
#: lib/cannery_web/controllers/user_confirmation_controller.ex:8
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Confirm your account"
|
||||
@ -792,19 +756,19 @@ msgstr "Enregistrer des tirs"
|
||||
msgid "Copies"
|
||||
msgstr "Exemplaires"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:34
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:40
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Ammo types"
|
||||
msgstr "Types de munition"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:96
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:66
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Added on"
|
||||
msgstr "Ajouté le"
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:49
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:57
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:30
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:97
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:123
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Added on:"
|
||||
msgstr "Ajouté le :"
|
||||
@ -873,7 +837,7 @@ msgstr "Éditer le type de munition"
|
||||
msgid "Move Ammo"
|
||||
msgstr "Déplacer munition"
|
||||
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:105
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:111
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "No ammo in this container"
|
||||
msgstr "Aucun groupe de munition pour ce conteneur"
|
||||
@ -889,6 +853,7 @@ msgid "This ammo is not in a container"
|
||||
msgstr "Ce groupe de munition n’est pas dans un conteneur"
|
||||
|
||||
#: lib/cannery_web/components/container_card.ex:58
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:95
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:27
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Packs:"
|
||||
@ -911,59 +876,237 @@ msgid "Leave \"Uses left\" blank to make invite unlimited"
|
||||
msgstr ""
|
||||
"Laissez \"Utilisations restantes\" vide pour rendre l'invitation illimitée"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:87
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Total # of ammo"
|
||||
msgstr "Quantité de cartouches"
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:71
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:86
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Container:"
|
||||
msgstr "Conteneur"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:48
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:126
|
||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:23
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:152
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:97
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Show used"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:101
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:61
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Used up on"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:55
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:63
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Used up on:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:197
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:195
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:19
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "%{percentage}%"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.ex:121
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Name: %{name}"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.ex:115
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Notes: %{notes}"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:62
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Rounds fired"
|
||||
msgstr "Cartouches utilisées"
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:64
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Rounds fired chart"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.ex:125
|
||||
#: lib/cannery_web/live/range_live/index.ex:114
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Rounds shot: %{count}"
|
||||
msgstr "Cartouches tirées"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:117
|
||||
#: lib/cannery_web/live/container_live/index.ex:125
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Packs"
|
||||
msgstr "Packages :"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:97
|
||||
#: lib/cannery_web/live/container_live/index.ex:126
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Rounds"
|
||||
msgstr "Cartouches :"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:158
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:23
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:103
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "View as table"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:127
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Total ever packs"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:111
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Total ever packs:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:108
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Total ever rounds"
|
||||
msgstr "Quantité de cartouches"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:83
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Total ever rounds:"
|
||||
msgstr "Nombre totale de cartouches tirées :"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:122
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Used packs"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:103
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Used packs:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:103
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Used rounds"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:75
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Used rounds:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:33
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Used up!"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:64
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Rounds shot chart"
|
||||
msgstr "Cartouches tirées"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:27
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Blank:"
|
||||
msgstr "Vide"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:13
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Bullet core:"
|
||||
msgstr "Noyau de balle"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:12
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Bullet type:"
|
||||
msgstr "Type de balle"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:15
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Caliber:"
|
||||
msgstr "Calibre"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:14
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Cartridge:"
|
||||
msgstr "Cartouche"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:16
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Case material:"
|
||||
msgstr "Matériau de la caisse"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:28
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Corrosive:"
|
||||
msgstr "Corrosive"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:24
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Firing type:"
|
||||
msgstr "Type d’allumage"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:21
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Grains:"
|
||||
msgstr "Graines"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:26
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Incendiary:"
|
||||
msgstr "Incendiaire"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:17
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Jacket type:"
|
||||
msgstr "Type de douille"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:29
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Manufacturer:"
|
||||
msgstr "Fabricant"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:18
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Muzzle velocity:"
|
||||
msgstr "Vélocité du canon"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:20
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Powder grains per charge:"
|
||||
msgstr "Graines de poudre par charge"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:19
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Powder type:"
|
||||
msgstr "Type de poudre"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:22
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Pressure:"
|
||||
msgstr "Pression"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:23
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Primer type:"
|
||||
msgstr "Type d’amorce"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:25
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Tracer:"
|
||||
msgstr "Traceuse"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:30
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "UPC:"
|
||||
msgstr "UPC"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:137
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:132
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Average CPR"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:117
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Edit %{ammo_type_name}"
|
||||
msgstr "Éditer %{name}"
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:39
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:233
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Empty"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:86
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "CPR"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:77
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "CPR:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:84
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Original Count"
|
||||
msgstr "Nombre original :"
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:44
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Original Count:"
|
||||
msgstr "Nombre original :"
|
||||
|
@ -28,13 +28,13 @@ msgstr ""
|
||||
msgid "Container must be empty before deleting"
|
||||
msgstr "Le conteneur doit être vide pour être supprimé"
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:69
|
||||
#: lib/cannery_web/live/container_live/show.ex:71
|
||||
#: lib/cannery_web/live/container_live/index.ex:88
|
||||
#: lib/cannery_web/live/container_live/show.ex:75
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Could not delete %{name}: %{error}"
|
||||
msgstr "Impossible de supprimer %{name} : %{error}"
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:57
|
||||
#: lib/cannery_web/live/container_live/index.ex:76
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Could not find that container"
|
||||
msgstr "Impossible de trouver ce conteneur"
|
||||
@ -122,22 +122,22 @@ msgstr "Vous n’êtes pas autorisé·e à voir cette page"
|
||||
msgid "You are not authorized to view this page."
|
||||
msgstr "Vous n’êtes pas autorisé·e à voir cette page."
|
||||
|
||||
#: lib/cannery/accounts/user.ex:130
|
||||
#: lib/cannery/accounts/user.ex:138
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "did not change"
|
||||
msgstr "est inchangé"
|
||||
|
||||
#: lib/cannery/accounts/user.ex:151
|
||||
#: lib/cannery/accounts/user.ex:159
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "does not match password"
|
||||
msgstr "le mot de passe ne correspond pas"
|
||||
|
||||
#: lib/cannery/accounts/user.ex:188
|
||||
#: lib/cannery/accounts/user.ex:196
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "is not valid"
|
||||
msgstr "n’est pas valide"
|
||||
|
||||
#: lib/cannery/accounts/user.ex:84
|
||||
#: lib/cannery/accounts/user.ex:92
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "must have the @ sign and no spaces"
|
||||
msgstr "doit contenir le symbole @ et aucune espace"
|
||||
@ -152,13 +152,13 @@ msgstr "Tag pas trouvé"
|
||||
msgid "Tag could not be added"
|
||||
msgstr "Le tag n’a pas pu être ajouté"
|
||||
|
||||
#: lib/cannery/activity_log/shot_group.ex:115
|
||||
#: lib/cannery/activity_log/shot_group.ex:123
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Count must be at least 1"
|
||||
msgstr "Le nombre doit être au moins égal à 1"
|
||||
|
||||
#: lib/cannery/activity_log/shot_group.ex:74
|
||||
#: lib/cannery/activity_log/shot_group.ex:111
|
||||
#: lib/cannery/activity_log/shot_group.ex:82
|
||||
#: lib/cannery/activity_log/shot_group.ex:119
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Count must be less than %{count}"
|
||||
msgstr "La quantité doit être inférieur à %{count}"
|
||||
@ -176,27 +176,27 @@ msgstr ""
|
||||
msgid "Tag could not be removed"
|
||||
msgstr "Le tag n’a pas pu être retiré"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.ex:156
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.ex:157
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Could not parse number of copies"
|
||||
msgstr "Impossible d'analyser le nombre de copies"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.ex:141
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.ex:142
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Invalid number of copies, must be between 1 and %{max}. Was %{multiplier}"
|
||||
msgstr "Nombre de copies invalide, doit être 1 et %{max}. Été %{multiplier}"
|
||||
|
||||
#: lib/cannery/ammo.ex:535
|
||||
#: lib/cannery/ammo.ex:609
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Invalid multiplier"
|
||||
msgstr "Multiplicateur invalide"
|
||||
|
||||
#: lib/cannery/ammo/ammo_group.ex:84
|
||||
#: lib/cannery/ammo/ammo_group.ex:94
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Please select an ammo type and container"
|
||||
msgstr "Veuillez choisir un type de munitions et un conteneur"
|
||||
|
||||
#: lib/cannery/activity_log/shot_group.ex:69
|
||||
#: lib/cannery/activity_log/shot_group.ex:77
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Please select a valid user and ammo group"
|
||||
msgstr "Veuillez choisir un utilisateur valide et un groupe de munitions"
|
||||
|
@ -23,16 +23,16 @@ msgstr ""
|
||||
## Run "mix gettext.extract" to bring this file up to
|
||||
## date. Leave "msgstr"s empty as changing them here has no
|
||||
## effect: edit them in PO (.po) files instead.
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.ex:85
|
||||
#: lib/cannery_web/live/container_live/form_component.ex:85
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.ex:86
|
||||
#: lib/cannery_web/live/container_live/form_component.ex:89
|
||||
#: lib/cannery_web/live/invite_live/form_component.ex:80
|
||||
#: lib/cannery_web/live/tag_live/form_component.ex:126
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "%{name} created successfully"
|
||||
msgstr "%{name} créé· avec succès"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:41
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:28
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:47
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:56
|
||||
#: lib/cannery_web/live/invite_live/index.ex:53
|
||||
#: lib/cannery_web/live/invite_live/index.ex:133
|
||||
#: lib/cannery_web/live/tag_live/index.ex:38
|
||||
@ -50,8 +50,8 @@ msgstr "%{name} supprimé·e avec succès"
|
||||
msgid "%{name} enabled succesfully"
|
||||
msgstr "%{name} activé·e avec succès"
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:62
|
||||
#: lib/cannery_web/live/container_live/show.ex:61
|
||||
#: lib/cannery_web/live/container_live/index.ex:81
|
||||
#: lib/cannery_web/live/container_live/show.ex:65
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "%{name} has been deleted"
|
||||
msgstr "%{name} a été supprimé·e"
|
||||
@ -62,7 +62,7 @@ msgid "%{name} updated succesfully"
|
||||
msgstr "%{name} mis à jour avec succès"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.ex:67
|
||||
#: lib/cannery_web/live/container_live/form_component.ex:67
|
||||
#: lib/cannery_web/live/container_live/form_component.ex:70
|
||||
#: lib/cannery_web/live/invite_live/form_component.ex:62
|
||||
#: lib/cannery_web/live/tag_live/form_component.ex:108
|
||||
#, elixir-autogen, elixir-format
|
||||
@ -76,7 +76,7 @@ msgstr ""
|
||||
"Un lien pour confirmer votre changement de mél a été envoyé à la nouvelle "
|
||||
"adresse."
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:56
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:64
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Ammo group deleted succesfully"
|
||||
msgstr "Groupe de munition supprimé avec succès"
|
||||
@ -88,7 +88,8 @@ msgid "Are you sure you want to delete %{email}? This action is permanent!"
|
||||
msgstr ""
|
||||
"Êtes-vous certain·e de supprimer %{email} ? Cette action est définitive !"
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:48
|
||||
#: lib/cannery_web/live/container_live/index.ex:223
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:73
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:51
|
||||
#: lib/cannery_web/live/tag_live/index.html.heex:39
|
||||
#, elixir-autogen, elixir-format
|
||||
@ -100,13 +101,13 @@ msgstr "Êtes-vous certain·e de supprimer %{name} ?"
|
||||
msgid "Are you sure you want to delete the invite for %{name}?"
|
||||
msgstr "Êtes-vous certain·e de supprimer l’invitation pour %{name} ?"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:225
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:132
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:75
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to delete this ammo?"
|
||||
msgstr "Êtes-vous certain·e de supprimer cette munition ?"
|
||||
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:146
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:155
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to delete your account?"
|
||||
msgstr "Êtes-vous certain·e de supprimer votre compte ?"
|
||||
@ -165,7 +166,7 @@ msgstr "Veuillez vérifier votre mél pour confirmer votre compte"
|
||||
msgid "Register to setup %{name}"
|
||||
msgstr "S’enregistrer pour mettre en place %{name}"
|
||||
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:48
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:55
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:74
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:157
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:52
|
||||
@ -193,7 +194,7 @@ msgstr ""
|
||||
msgid "%{name} added successfully"
|
||||
msgstr "%{name} a été ajouté avec succès"
|
||||
|
||||
#: lib/cannery_web/live/container_live/show.ex:37
|
||||
#: lib/cannery_web/live/container_live/show.ex:41
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "%{tag_name} has been removed from %{container_name}"
|
||||
msgstr "%{tag_name} a été retiré de %{container_name}"
|
||||
@ -214,7 +215,7 @@ msgid "Are you sure you want to unstage this ammo?"
|
||||
msgstr "Êtes-vous certain·e de vouloir désélectionner cette munition ?"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:132
|
||||
#: lib/cannery_web/live/range_live/index.ex:181
|
||||
#: lib/cannery_web/live/range_live/index.ex:159
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to delete this shot record?"
|
||||
msgstr "Êtes-vous certain·e de vouloir supprimer cet enregistrement de tir ?"
|
||||
@ -286,14 +287,14 @@ msgstr "Groupe de munition désélectionner avec succès"
|
||||
msgid "Ammo updated successfully"
|
||||
msgstr "Groupe de munition mis à jour avec succès"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.ex:177
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.ex:178
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Ammo added successfully"
|
||||
msgid_plural "Ammo added successfully"
|
||||
msgstr[0] "Groupe de munition mis à jour avec succès"
|
||||
msgstr[1] "Groupe de munition mis à jour avec succès"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:163
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:232
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:28
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Are you sure you want to delete %{name}? This will delete all %{name} type ammo as well!"
|
||||
|
@ -22,6 +22,7 @@ msgstr ""
|
||||
## date. Leave "msgstr"s empty as changing them here has no
|
||||
## effect: edit them in PO (.po) files instead.
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:44
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:50
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:40
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Add Ammo"
|
||||
@ -59,7 +60,7 @@ msgstr ""
|
||||
msgid "Create Invite"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:148
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:157
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Delete User"
|
||||
msgstr ""
|
||||
@ -130,7 +131,7 @@ msgstr ""
|
||||
msgid "Reset password"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:46
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:53
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:73
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:156
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:50
|
||||
@ -166,7 +167,7 @@ msgstr ""
|
||||
msgid "Why not get some ready to shoot?"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:190
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:80
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:101
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:38
|
||||
#, elixir-autogen, elixir-format
|
||||
@ -243,11 +244,6 @@ msgstr ""
|
||||
msgid "Set Unlimited"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:97
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Show used"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:86
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:31
|
||||
#, elixir-autogen, elixir-format
|
||||
@ -259,3 +255,8 @@ msgstr ""
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Unstage from range"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:148
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Export Data as JSON"
|
||||
msgstr ""
|
||||
|
@ -48,26 +48,19 @@ msgstr ""
|
||||
msgid "Ammo"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:96
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:21
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:90
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Ammo type"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:88
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:106
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Average Price paid"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/tag_live/form_component.ex:79
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Background color"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:140
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:71
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:59
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:82
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Blank"
|
||||
msgstr ""
|
||||
@ -78,68 +71,63 @@ msgid "Brass"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:44
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:53
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:45
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:64
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Bullet core"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:37
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:52
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:44
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:63
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Bullet type"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:58
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:55
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:47
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:66
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Caliber"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:51
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:54
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:46
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:65
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Cartridge"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:65
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:56
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:48
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:67
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Case material"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:72
|
||||
#: 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:95
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Container"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/topbar.ex:57
|
||||
#: lib/cannery_web/live/container_live/index.ex:36
|
||||
#: lib/cannery_web/live/container_live/index.ex:44
|
||||
#: lib/cannery_web/live/container_live/index.ex:53
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:3
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Containers"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:144
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:72
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:60
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:83
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Corrosive"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:83
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:27
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:91
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Count"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:37
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:38
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:8
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Count:"
|
||||
@ -147,6 +135,7 @@ msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:24
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:27
|
||||
#: lib/cannery_web/live/container_live/index.ex:122
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Description"
|
||||
msgstr ""
|
||||
@ -168,7 +157,6 @@ msgid "Edit Ammo group"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:23
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:63
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Edit Ammo type"
|
||||
msgstr ""
|
||||
@ -194,15 +182,13 @@ msgid "FMJ"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:103
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:65
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:53
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:76
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Grains"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:136
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:70
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:58
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:81
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Incendiary"
|
||||
msgstr ""
|
||||
@ -236,6 +222,7 @@ msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/move_ammo_group_component.ex:69
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:42
|
||||
#: lib/cannery_web/live/container_live/index.ex:123
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Location"
|
||||
msgstr ""
|
||||
@ -252,8 +239,7 @@ msgid "Magazine, Clip, Ammo Box, etc"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:148
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:73
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:61
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:84
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Manufacturer"
|
||||
msgstr ""
|
||||
@ -269,8 +255,9 @@ msgid "My cool ammo can"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:20
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:51
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:62
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:20
|
||||
#: lib/cannery_web/live/container_live/index.ex:121
|
||||
#: lib/cannery_web/live/invite_live/form_component.html.heex:20
|
||||
#: lib/cannery_web/live/tag_live/form_component.ex:75
|
||||
#, elixir-autogen, elixir-format
|
||||
@ -278,11 +265,13 @@ msgid "Name"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:29
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:35
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "New Ammo type"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:31
|
||||
#: lib/cannery_web/live/container_live/index.ex:38
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "New Container"
|
||||
msgstr ""
|
||||
@ -307,7 +296,7 @@ msgstr ""
|
||||
msgid "No Ammo Types"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:134
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:166
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "No ammo for this type"
|
||||
msgstr ""
|
||||
@ -328,7 +317,8 @@ msgstr ""
|
||||
msgid "No tags"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:30
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:37
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:88
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:41
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:88
|
||||
#: lib/cannery_web/live/range_live/form_component.html.heex:29
|
||||
@ -337,7 +327,7 @@ msgstr ""
|
||||
msgid "Notes"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:43
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:51
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:24
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Notes:"
|
||||
@ -349,26 +339,24 @@ msgid "On the bookshelf"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:111
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:66
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:54
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:77
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Pressure"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:85
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:34
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:92
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Price paid"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:62
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:70
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Price paid:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:118
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:67
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:55
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:78
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Primer type"
|
||||
msgstr ""
|
||||
@ -394,11 +382,6 @@ msgstr ""
|
||||
msgid "Settings"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:62
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Show Ammo type"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:83
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Simple:"
|
||||
@ -415,6 +398,7 @@ msgid "Stored in"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/topbar.ex:49
|
||||
#: lib/cannery_web/live/container_live/index.ex:127
|
||||
#: lib/cannery_web/live/tag_live/index.ex:32
|
||||
#: lib/cannery_web/live/tag_live/index.html.heex:3
|
||||
#, elixir-autogen, elixir-format
|
||||
@ -437,14 +421,14 @@ msgid "The self-hosted firearm tracker website"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:132
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:69
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:57
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:80
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Tracer"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/move_ammo_group_component.ex:68
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:35
|
||||
#: lib/cannery_web/live/container_live/index.ex:124
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Type"
|
||||
msgstr ""
|
||||
@ -485,8 +469,8 @@ msgstr ""
|
||||
msgid "No tags for this container"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:79
|
||||
#: lib/cannery_web/components/topbar.ex:81
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:94
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Range"
|
||||
msgstr ""
|
||||
@ -518,12 +502,12 @@ msgstr ""
|
||||
msgid "Record shots"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:49
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:56
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Ammo groups"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:38
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:45
|
||||
#: lib/cannery_web/live/range_live/form_component.html.heex:36
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Date (UTC)"
|
||||
@ -546,12 +530,14 @@ msgid "No shots recorded"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:21
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:25
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Rounds left"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:87
|
||||
#: lib/cannery_web/live/range_live/index.ex:81
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:62
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Rounds shot"
|
||||
msgstr ""
|
||||
@ -566,7 +552,7 @@ msgstr ""
|
||||
msgid "Move Ammo group"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:253
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:97
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Move ammo"
|
||||
msgstr ""
|
||||
@ -581,12 +567,14 @@ msgstr ""
|
||||
msgid "Shot log"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:63
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:145
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:71
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:78
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:159
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:227
|
||||
#: 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
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:110
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:179
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:136
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "$%{amount}"
|
||||
msgstr ""
|
||||
@ -597,36 +585,31 @@ msgid "Bimetal"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:72
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:57
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:49
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:68
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Jacket type"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:79
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:58
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:50
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:69
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Muzzle velocity"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:93
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:61
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:52
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:72
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Powder grains per charge"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:89
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:59
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:51
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:70
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Powder type"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:152
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:74
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:62
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:85
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "UPC"
|
||||
msgstr ""
|
||||
@ -647,19 +630,18 @@ msgstr ""
|
||||
msgid "New password"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:183
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:73
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Stage"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:183
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:73
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Unstage"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:125
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:68
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:56
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:79
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Firing type"
|
||||
msgstr ""
|
||||
@ -675,35 +657,32 @@ msgid "Loading..."
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:27
|
||||
#: lib/cannery_web/live/container_live/show.ex:106
|
||||
#: lib/cannery_web/live/container_live/show.ex:124
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Edit %{name}"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:46
|
||||
#: lib/cannery_web/live/container_live/show.ex:107
|
||||
#: lib/cannery_web/live/container_live/index.ex:65
|
||||
#: lib/cannery_web/live/container_live/show.ex:125
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Edit %{name} tags"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/container_card.ex:63
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:67
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:32
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Rounds:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/show.ex:105
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Show %{name}"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:117
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:116
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:224
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:178
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:142
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "No cost information"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:93
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:87
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "% left"
|
||||
msgstr ""
|
||||
@ -733,21 +712,6 @@ msgstr ""
|
||||
msgid "Rounds used"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:81
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Current # of rounds:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:86
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Total # of rounds"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:89
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Total rounds shot:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/controllers/user_confirmation_controller.ex:8
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Confirm your account"
|
||||
@ -784,19 +748,19 @@ msgstr ""
|
||||
msgid "Copies"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:34
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:40
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Ammo types"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:96
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:66
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Added on"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:49
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:57
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:30
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:97
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:123
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Added on:"
|
||||
msgstr ""
|
||||
@ -865,7 +829,7 @@ msgstr ""
|
||||
msgid "Move Ammo"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:105
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:111
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "No ammo in this container"
|
||||
msgstr ""
|
||||
@ -881,6 +845,7 @@ msgid "This ammo is not in a container"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/container_card.ex:58
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:95
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:27
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Packs:"
|
||||
@ -902,59 +867,237 @@ msgstr ""
|
||||
msgid "Leave \"Uses left\" blank to make invite unlimited"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:87
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Total # of ammo"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:71
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:86
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Container:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:48
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:126
|
||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:23
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:152
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:97
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Show used"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:101
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:61
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Used up on"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:55
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:63
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Used up on:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:197
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:195
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:19
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "%{percentage}%"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.ex:121
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Name: %{name}"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.ex:115
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Notes: %{notes}"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:62
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Rounds fired"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:64
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Rounds fired chart"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.ex:125
|
||||
#: lib/cannery_web/live/range_live/index.ex:114
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Rounds shot: %{count}"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:117
|
||||
#: lib/cannery_web/live/container_live/index.ex:125
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Packs"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:97
|
||||
#: lib/cannery_web/live/container_live/index.ex:126
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Rounds"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:158
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:23
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:103
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "View as table"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:127
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Total ever packs"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:111
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Total ever packs:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:108
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Total ever rounds"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:83
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Total ever rounds:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:122
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Used packs"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:103
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Used packs:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:103
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Used rounds"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:75
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Used rounds:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:33
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Used up!"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:64
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Rounds shot chart"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:27
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Blank:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:13
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Bullet core:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:12
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Bullet type:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:15
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Caliber:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:14
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Cartridge:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:16
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Case material:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:28
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Corrosive:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:24
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Firing type:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:21
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Grains:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:26
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Incendiary:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:17
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Jacket type:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:29
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Manufacturer:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:18
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Muzzle velocity:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:20
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Powder grains per charge:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:19
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Powder type:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:22
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Pressure:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:23
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Primer type:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:25
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Tracer:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:30
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "UPC:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:137
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:132
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Average CPR"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:117
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Edit %{ammo_type_name}"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:39
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:233
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Empty"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:86
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "CPR"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:77
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "CPR:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_table_component.ex:84
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Original Count"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:44
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Original Count:"
|
||||
msgstr ""
|
||||
|
@ -29,13 +29,13 @@ msgstr ""
|
||||
msgid "Container must be empty before deleting"
|
||||
msgstr "Caithfidh an coimeádán a bheidh follamh roimh scriosadh"
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:69
|
||||
#: lib/cannery_web/live/container_live/show.ex:71
|
||||
#: lib/cannery_web/live/container_live/index.ex:88
|
||||
#: lib/cannery_web/live/container_live/show.ex:75
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Could not delete %{name}: %{error}"
|
||||
msgstr "Ní feidir %{name} a scriosadh: %{error}"
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:57
|
||||
#: lib/cannery_web/live/container_live/index.ex:76
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Could not find that container"
|
||||
msgstr "Ní feidir an coimeádán sin a fáil"
|
||||
@ -123,22 +123,22 @@ msgstr "Níl cead agaibh féachaint ar an leathanach seo"
|
||||
msgid "You are not authorized to view this page."
|
||||
msgstr "Níl cead agaibh féachaint ar an leathanach seo."
|
||||
|
||||
#: lib/cannery/accounts/user.ex:130
|
||||
#: lib/cannery/accounts/user.ex:138
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "did not change"
|
||||
msgstr "Níor athraigh sé"
|
||||
|
||||
#: lib/cannery/accounts/user.ex:151
|
||||
#: lib/cannery/accounts/user.ex:159
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "does not match password"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery/accounts/user.ex:188
|
||||
#: lib/cannery/accounts/user.ex:196
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "is not valid"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery/accounts/user.ex:84
|
||||
#: lib/cannery/accounts/user.ex:92
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "must have the @ sign and no spaces"
|
||||
msgstr ""
|
||||
@ -153,13 +153,13 @@ msgstr ""
|
||||
msgid "Tag could not be added"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery/activity_log/shot_group.ex:115
|
||||
#: lib/cannery/activity_log/shot_group.ex:123
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Count must be at least 1"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery/activity_log/shot_group.ex:74
|
||||
#: lib/cannery/activity_log/shot_group.ex:111
|
||||
#: lib/cannery/activity_log/shot_group.ex:82
|
||||
#: lib/cannery/activity_log/shot_group.ex:119
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Count must be less than %{count}"
|
||||
msgstr ""
|
||||
@ -175,27 +175,27 @@ msgstr ""
|
||||
msgid "Tag could not be removed"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.ex:156
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.ex:157
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Could not parse number of copies"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.ex:141
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.ex:142
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Invalid number of copies, must be between 1 and %{max}. Was %{multiplier}"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery/ammo.ex:535
|
||||
#: lib/cannery/ammo.ex:609
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Invalid multiplier"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery/ammo/ammo_group.ex:84
|
||||
#: lib/cannery/ammo/ammo_group.ex:94
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Please select an ammo type and container"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery/activity_log/shot_group.ex:69
|
||||
#: lib/cannery/activity_log/shot_group.ex:77
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Please select a valid user and ammo group"
|
||||
msgstr ""
|
||||
|
@ -21,16 +21,16 @@ msgstr ""
|
||||
## Run "mix gettext.extract" to bring this file up to
|
||||
## date. Leave "msgstr"s empty as changing them here has no
|
||||
## effect: edit them in PO (.po) files instead.
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.ex:85
|
||||
#: lib/cannery_web/live/container_live/form_component.ex:85
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.ex:86
|
||||
#: lib/cannery_web/live/container_live/form_component.ex:89
|
||||
#: lib/cannery_web/live/invite_live/form_component.ex:80
|
||||
#: lib/cannery_web/live/tag_live/form_component.ex:126
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "%{name} created successfully"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:41
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:28
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:47
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:56
|
||||
#: lib/cannery_web/live/invite_live/index.ex:53
|
||||
#: lib/cannery_web/live/invite_live/index.ex:133
|
||||
#: lib/cannery_web/live/tag_live/index.ex:38
|
||||
@ -48,8 +48,8 @@ msgstr ""
|
||||
msgid "%{name} enabled succesfully"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:62
|
||||
#: lib/cannery_web/live/container_live/show.ex:61
|
||||
#: lib/cannery_web/live/container_live/index.ex:81
|
||||
#: lib/cannery_web/live/container_live/show.ex:65
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "%{name} has been deleted"
|
||||
msgstr ""
|
||||
@ -60,7 +60,7 @@ msgid "%{name} updated succesfully"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.ex:67
|
||||
#: lib/cannery_web/live/container_live/form_component.ex:67
|
||||
#: lib/cannery_web/live/container_live/form_component.ex:70
|
||||
#: lib/cannery_web/live/invite_live/form_component.ex:62
|
||||
#: lib/cannery_web/live/tag_live/form_component.ex:108
|
||||
#, elixir-autogen, elixir-format
|
||||
@ -72,7 +72,7 @@ msgstr ""
|
||||
msgid "A link to confirm your email change has been sent to the new address."
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:56
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:64
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Ammo group deleted succesfully"
|
||||
msgstr ""
|
||||
@ -83,7 +83,8 @@ msgstr ""
|
||||
msgid "Are you sure you want to delete %{email}? This action is permanent!"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:48
|
||||
#: lib/cannery_web/live/container_live/index.ex:223
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:73
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:51
|
||||
#: lib/cannery_web/live/tag_live/index.html.heex:39
|
||||
#, elixir-autogen, elixir-format
|
||||
@ -95,13 +96,13 @@ msgstr ""
|
||||
msgid "Are you sure you want to delete the invite for %{name}?"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:225
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:132
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:75
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to delete this ammo?"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:146
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:155
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to delete your account?"
|
||||
msgstr ""
|
||||
@ -156,7 +157,7 @@ msgstr ""
|
||||
msgid "Register to setup %{name}"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:48
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:55
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:74
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:157
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:52
|
||||
@ -182,7 +183,7 @@ msgstr ""
|
||||
msgid "%{name} added successfully"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/show.ex:37
|
||||
#: lib/cannery_web/live/container_live/show.ex:41
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "%{tag_name} has been removed from %{container_name}"
|
||||
msgstr ""
|
||||
@ -203,7 +204,7 @@ msgid "Are you sure you want to unstage this ammo?"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:132
|
||||
#: lib/cannery_web/live/range_live/index.ex:181
|
||||
#: lib/cannery_web/live/range_live/index.ex:159
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to delete this shot record?"
|
||||
msgstr ""
|
||||
@ -275,14 +276,14 @@ msgstr ""
|
||||
msgid "Ammo updated successfully"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.ex:177
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.ex:178
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Ammo added successfully"
|
||||
msgid_plural "Ammo added successfully"
|
||||
msgstr[0] ""
|
||||
msgstr[1] ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:163
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:232
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:28
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to delete %{name}? This will delete all %{name} type ammo as well!"
|
||||
|
@ -10,16 +10,16 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.ex:85
|
||||
#: lib/cannery_web/live/container_live/form_component.ex:85
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.ex:86
|
||||
#: lib/cannery_web/live/container_live/form_component.ex:89
|
||||
#: lib/cannery_web/live/invite_live/form_component.ex:80
|
||||
#: lib/cannery_web/live/tag_live/form_component.ex:126
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "%{name} created successfully"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:41
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:28
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:47
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:56
|
||||
#: lib/cannery_web/live/invite_live/index.ex:53
|
||||
#: lib/cannery_web/live/invite_live/index.ex:133
|
||||
#: lib/cannery_web/live/tag_live/index.ex:38
|
||||
@ -37,8 +37,8 @@ msgstr ""
|
||||
msgid "%{name} enabled succesfully"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:62
|
||||
#: lib/cannery_web/live/container_live/show.ex:61
|
||||
#: lib/cannery_web/live/container_live/index.ex:81
|
||||
#: lib/cannery_web/live/container_live/show.ex:65
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "%{name} has been deleted"
|
||||
msgstr ""
|
||||
@ -49,7 +49,7 @@ msgid "%{name} updated succesfully"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.ex:67
|
||||
#: lib/cannery_web/live/container_live/form_component.ex:67
|
||||
#: lib/cannery_web/live/container_live/form_component.ex:70
|
||||
#: lib/cannery_web/live/invite_live/form_component.ex:62
|
||||
#: lib/cannery_web/live/tag_live/form_component.ex:108
|
||||
#, elixir-autogen, elixir-format
|
||||
@ -61,7 +61,7 @@ msgstr ""
|
||||
msgid "A link to confirm your email change has been sent to the new address."
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:56
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:64
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Ammo group deleted succesfully"
|
||||
msgstr ""
|
||||
@ -72,7 +72,8 @@ msgstr ""
|
||||
msgid "Are you sure you want to delete %{email}? This action is permanent!"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:48
|
||||
#: lib/cannery_web/live/container_live/index.ex:223
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:73
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:51
|
||||
#: lib/cannery_web/live/tag_live/index.html.heex:39
|
||||
#, elixir-autogen, elixir-format
|
||||
@ -84,13 +85,13 @@ msgstr ""
|
||||
msgid "Are you sure you want to delete the invite for %{name}?"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:225
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:132
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:75
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to delete this ammo?"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:146
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:155
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to delete your account?"
|
||||
msgstr ""
|
||||
@ -145,7 +146,7 @@ msgstr ""
|
||||
msgid "Register to setup %{name}"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:48
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:55
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:74
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:157
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:52
|
||||
@ -171,7 +172,7 @@ msgstr ""
|
||||
msgid "%{name} added successfully"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/container_live/show.ex:37
|
||||
#: lib/cannery_web/live/container_live/show.ex:41
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "%{tag_name} has been removed from %{container_name}"
|
||||
msgstr ""
|
||||
@ -192,7 +193,7 @@ msgid "Are you sure you want to unstage this ammo?"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:132
|
||||
#: lib/cannery_web/live/range_live/index.ex:181
|
||||
#: lib/cannery_web/live/range_live/index.ex:159
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to delete this shot record?"
|
||||
msgstr ""
|
||||
@ -264,14 +265,14 @@ msgstr ""
|
||||
msgid "Ammo updated successfully"
|
||||
msgstr ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.ex:177
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.ex:178
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Ammo added successfully"
|
||||
msgid_plural "Ammo added successfully"
|
||||
msgstr[0] ""
|
||||
msgstr[1] ""
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:163
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:232
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:28
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to delete %{name}? This will delete all %{name} type ammo as well!"
|
||||
|
@ -94,6 +94,135 @@ defmodule Cannery.AmmoTest do
|
||||
end
|
||||
end
|
||||
|
||||
describe "ammo types with ammo groups" do
|
||||
setup do
|
||||
current_user = user_fixture()
|
||||
ammo_type = ammo_type_fixture(current_user)
|
||||
container = container_fixture(current_user)
|
||||
|
||||
[
|
||||
ammo_type: ammo_type,
|
||||
container: container,
|
||||
current_user: current_user
|
||||
]
|
||||
end
|
||||
|
||||
test "get_average_cost_for_ammo_type!/2 gets average cost for ammo type",
|
||||
%{ammo_type: ammo_type, current_user: current_user, container: container} do
|
||||
{1, [_ammo_group]} =
|
||||
ammo_group_fixture(
|
||||
%{"price_paid" => 25.00, "count" => 1},
|
||||
ammo_type,
|
||||
container,
|
||||
current_user
|
||||
)
|
||||
|
||||
assert 25.0 = Ammo.get_average_cost_for_ammo_type!(ammo_type, current_user)
|
||||
|
||||
{1, [_ammo_group]} =
|
||||
ammo_group_fixture(
|
||||
%{"price_paid" => 25.00, "count" => 1},
|
||||
ammo_type,
|
||||
container,
|
||||
current_user
|
||||
)
|
||||
|
||||
assert 25.0 = Ammo.get_average_cost_for_ammo_type!(ammo_type, current_user)
|
||||
|
||||
{1, [_ammo_group]} =
|
||||
ammo_group_fixture(
|
||||
%{"price_paid" => 70.00, "count" => 1},
|
||||
ammo_type,
|
||||
container,
|
||||
current_user
|
||||
)
|
||||
|
||||
assert 40.0 = Ammo.get_average_cost_for_ammo_type!(ammo_type, current_user)
|
||||
|
||||
{1, [_ammo_group]} =
|
||||
ammo_group_fixture(
|
||||
%{"price_paid" => 30.00, "count" => 1},
|
||||
ammo_type,
|
||||
container,
|
||||
current_user
|
||||
)
|
||||
|
||||
assert 37.5 = Ammo.get_average_cost_for_ammo_type!(ammo_type, current_user)
|
||||
end
|
||||
|
||||
test "get_round_count_for_ammo_type/2 gets accurate round count for ammo type",
|
||||
%{ammo_type: ammo_type, current_user: current_user, container: container} do
|
||||
{1, [first_ammo_group]} =
|
||||
ammo_group_fixture(%{"count" => 1}, ammo_type, container, current_user)
|
||||
|
||||
assert 1 = Ammo.get_round_count_for_ammo_type(ammo_type, current_user)
|
||||
|
||||
{1, [ammo_group]} = ammo_group_fixture(%{"count" => 50}, ammo_type, container, current_user)
|
||||
|
||||
assert 51 = Ammo.get_round_count_for_ammo_type(ammo_type, current_user)
|
||||
|
||||
shot_group_fixture(%{"count" => 26}, current_user, ammo_group)
|
||||
assert 25 = Ammo.get_round_count_for_ammo_type(ammo_type, current_user)
|
||||
|
||||
shot_group_fixture(%{"count" => 1}, current_user, first_ammo_group)
|
||||
assert 24 = Ammo.get_round_count_for_ammo_type(ammo_type, current_user)
|
||||
end
|
||||
|
||||
test "get_used_count_for_ammo_type/2 gets accurate used round count for ammo type",
|
||||
%{ammo_type: ammo_type, current_user: current_user, container: container} do
|
||||
{1, [first_ammo_group]} =
|
||||
ammo_group_fixture(%{"count" => 1}, ammo_type, container, current_user)
|
||||
|
||||
assert 0 = Ammo.get_used_count_for_ammo_type(ammo_type, current_user)
|
||||
|
||||
{1, [ammo_group]} = ammo_group_fixture(%{"count" => 50}, ammo_type, container, current_user)
|
||||
|
||||
assert 0 = Ammo.get_used_count_for_ammo_type(ammo_type, current_user)
|
||||
|
||||
shot_group_fixture(%{"count" => 26}, current_user, ammo_group)
|
||||
assert 26 = Ammo.get_used_count_for_ammo_type(ammo_type, current_user)
|
||||
|
||||
shot_group_fixture(%{"count" => 1}, current_user, first_ammo_group)
|
||||
assert 27 = Ammo.get_used_count_for_ammo_type(ammo_type, current_user)
|
||||
end
|
||||
|
||||
test "get_historical_count_for_ammo_type/2 gets accurate total round count for ammo type",
|
||||
%{ammo_type: ammo_type, current_user: current_user, container: container} do
|
||||
{1, [first_ammo_group]} =
|
||||
ammo_group_fixture(%{"count" => 1}, ammo_type, container, current_user)
|
||||
|
||||
assert 1 = Ammo.get_historical_count_for_ammo_type(ammo_type, current_user)
|
||||
|
||||
{1, [ammo_group]} = ammo_group_fixture(%{"count" => 50}, ammo_type, container, current_user)
|
||||
|
||||
assert 51 = Ammo.get_historical_count_for_ammo_type(ammo_type, current_user)
|
||||
|
||||
shot_group_fixture(%{"count" => 26}, current_user, ammo_group)
|
||||
assert 51 = Ammo.get_historical_count_for_ammo_type(ammo_type, current_user)
|
||||
|
||||
shot_group_fixture(%{"count" => 1}, current_user, first_ammo_group)
|
||||
assert 51 = Ammo.get_historical_count_for_ammo_type(ammo_type, current_user)
|
||||
end
|
||||
|
||||
test "get_used_ammo_groups_count_for_type/2 gets accurate total ammo count for ammo type",
|
||||
%{ammo_type: ammo_type, current_user: current_user, container: container} do
|
||||
{1, [first_ammo_group]} =
|
||||
ammo_group_fixture(%{"count" => 1}, ammo_type, container, current_user)
|
||||
|
||||
assert 0 = Ammo.get_used_ammo_groups_count_for_type(ammo_type, current_user)
|
||||
|
||||
{1, [ammo_group]} = ammo_group_fixture(%{"count" => 50}, ammo_type, container, current_user)
|
||||
|
||||
assert 0 = Ammo.get_used_ammo_groups_count_for_type(ammo_type, current_user)
|
||||
|
||||
shot_group_fixture(%{"count" => 50}, current_user, ammo_group)
|
||||
assert 1 = Ammo.get_used_ammo_groups_count_for_type(ammo_type, current_user)
|
||||
|
||||
shot_group_fixture(%{"count" => 1}, current_user, first_ammo_group)
|
||||
assert 2 = Ammo.get_used_ammo_groups_count_for_type(ammo_type, current_user)
|
||||
end
|
||||
end
|
||||
|
||||
describe "ammo_groups" do
|
||||
@valid_attrs %{"count" => 42, "notes" => "some notes", "price_paid" => 120.5}
|
||||
@update_attrs %{"count" => 43, "notes" => "some updated notes", "price_paid" => 456.7}
|
||||
@ -103,7 +232,10 @@ defmodule Cannery.AmmoTest do
|
||||
current_user = user_fixture()
|
||||
ammo_type = ammo_type_fixture(current_user)
|
||||
container = container_fixture(current_user)
|
||||
{1, [ammo_group]} = ammo_group_fixture(ammo_type, container, current_user)
|
||||
|
||||
{1, [ammo_group]} =
|
||||
%{"count" => 50, "price_paid" => 36.1}
|
||||
|> ammo_group_fixture(ammo_type, container, current_user)
|
||||
|
||||
[
|
||||
ammo_type: ammo_type,
|
||||
@ -113,9 +245,76 @@ defmodule Cannery.AmmoTest do
|
||||
]
|
||||
end
|
||||
|
||||
test "list_ammo_groups/0 returns all ammo_groups",
|
||||
%{ammo_group: ammo_group, current_user: current_user} do
|
||||
test "list_ammo_groups/2 returns all ammo_groups",
|
||||
%{
|
||||
ammo_type: ammo_type,
|
||||
ammo_group: ammo_group,
|
||||
container: container,
|
||||
current_user: current_user
|
||||
} do
|
||||
{1, [another_ammo_group]} =
|
||||
ammo_group_fixture(%{"count" => 30}, ammo_type, container, current_user)
|
||||
|
||||
shot_group_fixture(%{"count" => 30}, current_user, another_ammo_group)
|
||||
another_ammo_group = another_ammo_group |> Repo.reload!()
|
||||
assert Ammo.list_ammo_groups(current_user) == [ammo_group] |> Repo.preload(:shot_groups)
|
||||
|
||||
assert Ammo.list_ammo_groups(current_user, true)
|
||||
|> Enum.sort_by(fn %{count: count} -> count end) ==
|
||||
[another_ammo_group, ammo_group] |> Repo.preload(:shot_groups)
|
||||
end
|
||||
|
||||
test "list_ammo_groups_for_type/2 returns all ammo_groups for a type",
|
||||
%{
|
||||
ammo_type: ammo_type,
|
||||
container: container,
|
||||
ammo_group: ammo_group,
|
||||
current_user: current_user
|
||||
} do
|
||||
another_ammo_type = ammo_type_fixture(current_user)
|
||||
{1, [_another]} = ammo_group_fixture(another_ammo_type, container, current_user)
|
||||
|
||||
assert Ammo.list_ammo_groups_for_type(ammo_type, current_user) ==
|
||||
[ammo_group] |> Repo.preload(:shot_groups)
|
||||
end
|
||||
|
||||
test "list_ammo_groups_for_container/2 returns all ammo_groups for a container",
|
||||
%{
|
||||
ammo_type: ammo_type,
|
||||
container: container,
|
||||
ammo_group: ammo_group,
|
||||
current_user: current_user
|
||||
} do
|
||||
another_container = container_fixture(current_user)
|
||||
{1, [_another]} = ammo_group_fixture(ammo_type, another_container, current_user)
|
||||
|
||||
assert Ammo.list_ammo_groups_for_container(container, current_user) ==
|
||||
[ammo_group] |> Repo.preload(:shot_groups)
|
||||
end
|
||||
|
||||
test "get_ammo_groups_count_for_type/2 returns count of ammo_groups for a type",
|
||||
%{
|
||||
ammo_type: ammo_type,
|
||||
container: container,
|
||||
current_user: current_user
|
||||
} do
|
||||
another_ammo_type = ammo_type_fixture(current_user)
|
||||
{1, [_another]} = ammo_group_fixture(another_ammo_type, container, current_user)
|
||||
|
||||
assert 1 = Ammo.get_ammo_groups_count_for_type(ammo_type, current_user)
|
||||
end
|
||||
|
||||
test "list_staged_ammo_groups/2 returns all ammo_groups that are staged",
|
||||
%{
|
||||
ammo_type: ammo_type,
|
||||
container: container,
|
||||
current_user: current_user
|
||||
} do
|
||||
{1, [another_ammo_group]} =
|
||||
ammo_group_fixture(%{"staged" => true}, ammo_type, container, current_user)
|
||||
|
||||
assert Ammo.list_staged_ammo_groups(current_user) ==
|
||||
[another_ammo_group] |> Repo.preload(:shot_groups)
|
||||
end
|
||||
|
||||
test "get_ammo_group!/1 returns the ammo_group with given id",
|
||||
@ -140,6 +339,27 @@ defmodule Cannery.AmmoTest do
|
||||
assert ammo_group.price_paid == 120.5
|
||||
end
|
||||
|
||||
test "create_ammo_groups/3 with valid data creates multiple ammo_groups",
|
||||
%{
|
||||
ammo_type: ammo_type,
|
||||
container: container,
|
||||
current_user: current_user
|
||||
} do
|
||||
assert {:ok, {3, ammo_groups}} =
|
||||
@valid_attrs
|
||||
|> Map.merge(%{"ammo_type_id" => ammo_type.id, "container_id" => container.id})
|
||||
|> Ammo.create_ammo_groups(3, current_user)
|
||||
|
||||
assert [%AmmoGroup{}, %AmmoGroup{}, %AmmoGroup{}] = ammo_groups
|
||||
|
||||
ammo_groups
|
||||
|> Enum.map(fn %{count: count, notes: notes, price_paid: price_paid} ->
|
||||
assert count == 42
|
||||
assert notes == "some notes"
|
||||
assert price_paid == 120.5
|
||||
end)
|
||||
end
|
||||
|
||||
test "create_ammo_groups/3 with invalid data returns error changeset",
|
||||
%{ammo_type: ammo_type, container: container, current_user: current_user} do
|
||||
assert {:error, %Changeset{}} =
|
||||
@ -175,5 +395,112 @@ defmodule Cannery.AmmoTest do
|
||||
Ammo.get_ammo_group!(ammo_group.id, current_user)
|
||||
end
|
||||
end
|
||||
|
||||
test "get_used_count/1 returns accurate used count",
|
||||
%{ammo_group: ammo_group, current_user: current_user} do
|
||||
assert 0 = Ammo.get_used_count(ammo_group)
|
||||
shot_group_fixture(%{"count" => 15}, current_user, ammo_group)
|
||||
assert 15 = ammo_group |> Repo.preload(:shot_groups, force: true) |> Ammo.get_used_count()
|
||||
shot_group_fixture(%{"count" => 10}, current_user, ammo_group)
|
||||
assert 25 = ammo_group |> Repo.preload(:shot_groups, force: true) |> Ammo.get_used_count()
|
||||
end
|
||||
|
||||
test "get_last_used_shot_group/1 returns accurate used count",
|
||||
%{ammo_group: ammo_group, current_user: current_user} do
|
||||
assert ammo_group
|
||||
|> Repo.preload(:shot_groups, force: true)
|
||||
|> Ammo.get_last_used_shot_group()
|
||||
|> is_nil()
|
||||
|
||||
shot_group = shot_group_fixture(%{"date" => ~D[2022-11-10]}, current_user, ammo_group)
|
||||
|
||||
assert ^shot_group =
|
||||
ammo_group
|
||||
|> Repo.preload(:shot_groups, force: true)
|
||||
|> Ammo.get_last_used_shot_group()
|
||||
|
||||
shot_group = shot_group_fixture(%{"date" => ~D[2022-11-11]}, current_user, ammo_group)
|
||||
|
||||
assert ^shot_group =
|
||||
ammo_group
|
||||
|> Repo.preload(:shot_groups, force: true)
|
||||
|> Ammo.get_last_used_shot_group()
|
||||
end
|
||||
|
||||
test "get_percentage_remaining/1 gets accurate total round count",
|
||||
%{ammo_group: ammo_group, current_user: current_user} do
|
||||
assert 100 = Ammo.get_percentage_remaining(ammo_group)
|
||||
|
||||
shot_group_fixture(%{"count" => 14}, current_user, ammo_group)
|
||||
|
||||
assert 72 =
|
||||
ammo_group
|
||||
|> Repo.reload!()
|
||||
|> Repo.preload(:shot_groups, force: true)
|
||||
|> Ammo.get_percentage_remaining()
|
||||
|
||||
shot_group_fixture(%{"count" => 11}, current_user, ammo_group)
|
||||
|
||||
assert 50 =
|
||||
ammo_group
|
||||
|> Repo.reload!()
|
||||
|> Repo.preload(:shot_groups, force: true)
|
||||
|> Ammo.get_percentage_remaining()
|
||||
|
||||
shot_group_fixture(%{"count" => 25}, current_user, ammo_group)
|
||||
|
||||
assert 0 =
|
||||
ammo_group
|
||||
|> Repo.reload!()
|
||||
|> Repo.preload(:shot_groups, force: true)
|
||||
|> Ammo.get_percentage_remaining()
|
||||
end
|
||||
|
||||
test "get_cpr/1 gets accurate cpr",
|
||||
%{ammo_group: ammo_group, current_user: current_user} do
|
||||
assert %AmmoGroup{price_paid: nil} |> Ammo.get_cpr() |> is_nil()
|
||||
assert %AmmoGroup{count: 1, price_paid: nil} |> Ammo.get_cpr() |> is_nil()
|
||||
assert 1.0 = %AmmoGroup{count: 1, price_paid: 1.0} |> Ammo.get_cpr()
|
||||
assert 1.5 = %AmmoGroup{count: 2, price_paid: 3.0} |> Ammo.get_cpr()
|
||||
assert 0.722 = %AmmoGroup{count: 50, price_paid: 36.1} |> Ammo.get_cpr()
|
||||
|
||||
# with shot group, maintains total
|
||||
shot_group_fixture(%{"count" => 14}, current_user, ammo_group)
|
||||
|
||||
assert 0.722 =
|
||||
ammo_group
|
||||
|> Repo.reload!()
|
||||
|> Repo.preload(:shot_groups, force: true)
|
||||
|> Ammo.get_cpr()
|
||||
end
|
||||
|
||||
test "get_original_count/1 gets accurate original count",
|
||||
%{ammo_group: ammo_group, current_user: current_user} do
|
||||
assert 50 = Ammo.get_original_count(ammo_group)
|
||||
|
||||
shot_group_fixture(%{"count" => 14}, current_user, ammo_group)
|
||||
|
||||
assert 50 =
|
||||
ammo_group
|
||||
|> Repo.reload!()
|
||||
|> Repo.preload(:shot_groups, force: true)
|
||||
|> Ammo.get_original_count()
|
||||
|
||||
shot_group_fixture(%{"count" => 11}, current_user, ammo_group)
|
||||
|
||||
assert 50 =
|
||||
ammo_group
|
||||
|> Repo.reload!()
|
||||
|> Repo.preload(:shot_groups, force: true)
|
||||
|> Ammo.get_original_count()
|
||||
|
||||
shot_group_fixture(%{"count" => 25}, current_user, ammo_group)
|
||||
|
||||
assert 50 =
|
||||
ammo_group
|
||||
|> Repo.reload!()
|
||||
|> Repo.preload(:shot_groups, force: true)
|
||||
|> Ammo.get_original_count()
|
||||
end
|
||||
end
|
||||
end
|
||||
|
138
test/cannery_web/controllers/export_controller_test.exs
Normal file
138
test/cannery_web/controllers/export_controller_test.exs
Normal file
@ -0,0 +1,138 @@
|
||||
defmodule CanneryWeb.ExportControllerTest do
|
||||
@moduledoc """
|
||||
Tests the export function
|
||||
"""
|
||||
|
||||
use CanneryWeb.ConnCase
|
||||
alias Cannery.{Ammo, Containers, Repo}
|
||||
|
||||
@moduletag :export_controller_test
|
||||
|
||||
setup %{conn: conn} do
|
||||
current_user = user_fixture() |> confirm_user()
|
||||
|
||||
[
|
||||
current_user: current_user,
|
||||
conn: conn |> log_in_user(current_user)
|
||||
]
|
||||
end
|
||||
|
||||
defp add_data(%{current_user: current_user}) do
|
||||
ammo_type = ammo_type_fixture(current_user)
|
||||
container = container_fixture(current_user)
|
||||
tag = tag_fixture(current_user)
|
||||
Containers.add_tag!(container, tag, current_user)
|
||||
{1, [ammo_group]} = ammo_group_fixture(ammo_type, container, current_user)
|
||||
shot_group = shot_group_fixture(current_user, ammo_group)
|
||||
ammo_group = ammo_group |> Repo.reload!()
|
||||
|
||||
%{
|
||||
ammo_type: ammo_type,
|
||||
ammo_group: ammo_group,
|
||||
container: container,
|
||||
shot_group: shot_group,
|
||||
tag: tag
|
||||
}
|
||||
end
|
||||
|
||||
describe "Exports data" do
|
||||
setup [:add_data]
|
||||
|
||||
test "in JSON", %{
|
||||
conn: conn,
|
||||
current_user: current_user,
|
||||
container: container,
|
||||
ammo_type: ammo_type,
|
||||
ammo_group: ammo_group,
|
||||
shot_group: shot_group,
|
||||
tag: tag
|
||||
} do
|
||||
conn = get(conn, Routes.export_path(conn, :export, :json))
|
||||
|
||||
ideal_ammo_group = %{
|
||||
"ammo_type_id" => ammo_group.ammo_type_id,
|
||||
"container_id" => ammo_group.container_id,
|
||||
"count" => ammo_group.count,
|
||||
"id" => ammo_group.id,
|
||||
"notes" => ammo_group.notes,
|
||||
"price_paid" => ammo_group.price_paid,
|
||||
"staged" => ammo_group.staged,
|
||||
"used_count" => ammo_group |> Ammo.get_used_count(),
|
||||
"original_count" => ammo_group |> Ammo.get_original_count(),
|
||||
"cpr" => ammo_group |> Ammo.get_cpr(),
|
||||
"percentage_remaining" => ammo_group |> Ammo.get_percentage_remaining()
|
||||
}
|
||||
|
||||
ideal_ammo_type = %{
|
||||
"blank" => ammo_type.blank,
|
||||
"bullet_core" => ammo_type.bullet_core,
|
||||
"bullet_type" => ammo_type.bullet_type,
|
||||
"caliber" => ammo_type.caliber,
|
||||
"cartridge" => ammo_type.cartridge,
|
||||
"case_material" => ammo_type.case_material,
|
||||
"corrosive" => ammo_type.corrosive,
|
||||
"desc" => ammo_type.desc,
|
||||
"firing_type" => ammo_type.firing_type,
|
||||
"grains" => ammo_type.grains,
|
||||
"id" => ammo_type.id,
|
||||
"incendiary" => ammo_type.incendiary,
|
||||
"jacket_type" => ammo_type.jacket_type,
|
||||
"manufacturer" => ammo_type.manufacturer,
|
||||
"muzzle_velocity" => ammo_type.muzzle_velocity,
|
||||
"name" => ammo_type.name,
|
||||
"powder_grains_per_charge" => ammo_type.powder_grains_per_charge,
|
||||
"powder_type" => ammo_type.powder_type,
|
||||
"pressure" => ammo_type.pressure,
|
||||
"primer_type" => ammo_type.primer_type,
|
||||
"tracer" => ammo_type.tracer,
|
||||
"upc" => ammo_type.upc,
|
||||
"average_cost" => ammo_type |> Ammo.get_average_cost_for_ammo_type!(current_user),
|
||||
"round_count" => ammo_type |> Ammo.get_round_count_for_ammo_type(current_user),
|
||||
"used_count" => ammo_type |> Ammo.get_used_count_for_ammo_type(current_user),
|
||||
"ammo_group_count" => ammo_type |> Ammo.get_ammo_groups_count_for_type(current_user, true)
|
||||
}
|
||||
|
||||
ideal_container = %{
|
||||
"desc" => container.desc,
|
||||
"id" => container.id,
|
||||
"location" => container.location,
|
||||
"name" => container.name,
|
||||
"tags" => [
|
||||
%{
|
||||
"id" => tag.id,
|
||||
"name" => tag.name,
|
||||
"bg_color" => tag.bg_color,
|
||||
"text_color" => tag.text_color
|
||||
}
|
||||
],
|
||||
"type" => container.type,
|
||||
"ammo_group_count" => container |> Containers.get_container_ammo_group_count!(),
|
||||
"round_count" => container |> Containers.get_container_rounds!()
|
||||
}
|
||||
|
||||
ideal_shot_group = %{
|
||||
"ammo_group_id" => shot_group.ammo_group_id,
|
||||
"count" => shot_group.count,
|
||||
"date" => to_string(shot_group.date),
|
||||
"id" => shot_group.id,
|
||||
"notes" => shot_group.notes
|
||||
}
|
||||
|
||||
ideal_user = %{
|
||||
"confirmed_at" =>
|
||||
current_user.confirmed_at |> Jason.encode!() |> String.replace(~r/\"/, ""),
|
||||
"email" => current_user.email,
|
||||
"id" => current_user.id,
|
||||
"locale" => current_user.locale,
|
||||
"role" => to_string(current_user.role)
|
||||
}
|
||||
|
||||
json_resp = conn |> json_response(200)
|
||||
assert %{"ammo_groups" => [^ideal_ammo_group]} = json_resp
|
||||
assert %{"ammo_types" => [^ideal_ammo_type]} = json_resp
|
||||
assert %{"containers" => [^ideal_container]} = json_resp
|
||||
assert %{"shot_groups" => [^ideal_shot_group]} = json_resp
|
||||
assert %{"user" => ^ideal_user} = json_resp
|
||||
end
|
||||
end
|
||||
end
|
@ -18,7 +18,7 @@ defmodule CanneryWeb.AmmoGroupLiveTest do
|
||||
@create_attrs %{"count" => 42, "notes" => "some notes", "price_paid" => 120.5}
|
||||
@update_attrs %{"count" => 43, "notes" => "some updated notes", "price_paid" => 456.7}
|
||||
@ammo_group_create_limit 10_000
|
||||
@ammo_group_attrs %{
|
||||
@empty_attrs %{
|
||||
"price_paid" => 50,
|
||||
"count" => 20
|
||||
}
|
||||
@ -32,7 +32,7 @@ defmodule CanneryWeb.AmmoGroupLiveTest do
|
||||
defp create_ammo_group(%{current_user: current_user}) do
|
||||
ammo_type = ammo_type_fixture(current_user)
|
||||
container = container_fixture(current_user)
|
||||
{1, [ammo_group]} = ammo_group_fixture(ammo_type, container, current_user)
|
||||
{1, [ammo_group]} = ammo_group_fixture(@create_attrs, ammo_type, container, current_user)
|
||||
|
||||
%{ammo_type: ammo_type, ammo_group: ammo_group, container: container}
|
||||
end
|
||||
@ -49,7 +49,7 @@ defmodule CanneryWeb.AmmoGroupLiveTest do
|
||||
ammo_type: ammo_type,
|
||||
container: container
|
||||
}) do
|
||||
{1, [ammo_group]} = ammo_group_fixture(@ammo_group_attrs, ammo_type, container, current_user)
|
||||
{1, [ammo_group]} = ammo_group_fixture(@empty_attrs, ammo_type, container, current_user)
|
||||
shot_group = shot_group_fixture(@shot_group_attrs, current_user, ammo_group)
|
||||
ammo_group = ammo_group |> Repo.reload!()
|
||||
%{empty_ammo_group: ammo_group, shot_group: shot_group}
|
||||
@ -70,7 +70,7 @@ defmodule CanneryWeb.AmmoGroupLiveTest do
|
||||
{:ok, index_live, _html} = live(conn, Routes.ammo_group_index_path(conn, :index))
|
||||
|
||||
assert index_live |> element("a", dgettext("actions", "Add Ammo")) |> render_click() =~
|
||||
gettext("Add Ammo")
|
||||
dgettext("actions", "Add Ammo")
|
||||
|
||||
assert_patch(index_live, Routes.ammo_group_index_path(conn, :new))
|
||||
|
||||
@ -94,7 +94,7 @@ defmodule CanneryWeb.AmmoGroupLiveTest do
|
||||
{:ok, index_live, _html} = live(conn, Routes.ammo_group_index_path(conn, :index))
|
||||
|
||||
assert index_live |> element("a", dgettext("actions", "Add Ammo")) |> render_click() =~
|
||||
gettext("Add Ammo")
|
||||
dgettext("actions", "Add Ammo")
|
||||
|
||||
assert_patch(index_live, Routes.ammo_group_index_path(conn, :new))
|
||||
|
||||
@ -118,7 +118,7 @@ defmodule CanneryWeb.AmmoGroupLiveTest do
|
||||
{:ok, index_live, _html} = live(conn, Routes.ammo_group_index_path(conn, :index))
|
||||
|
||||
assert index_live |> element("a", dgettext("actions", "Add Ammo")) |> render_click() =~
|
||||
gettext("Add Ammo")
|
||||
dgettext("actions", "Add Ammo")
|
||||
|
||||
assert_patch(index_live, Routes.ammo_group_index_path(conn, :new))
|
||||
|
||||
@ -174,6 +174,62 @@ defmodule CanneryWeb.AmmoGroupLiveTest do
|
||||
assert html =~ "43"
|
||||
end
|
||||
|
||||
test "clones ammo_group in listing", %{conn: conn, ammo_group: ammo_group} do
|
||||
{:ok, index_live, _html} = live(conn, Routes.ammo_group_index_path(conn, :index))
|
||||
|
||||
html =
|
||||
index_live
|
||||
|> element("[data-qa=\"clone-#{ammo_group.id}\"]")
|
||||
|> render_click()
|
||||
|
||||
assert html =~ dgettext("actions", "Add Ammo")
|
||||
assert html =~ gettext("$%{amount}", amount: 120.5 |> :erlang.float_to_binary(decimals: 2))
|
||||
|
||||
assert_patch(index_live, Routes.ammo_group_index_path(conn, :clone, ammo_group))
|
||||
|
||||
# assert index_live
|
||||
# |> form("#ammo_group-form", ammo_group: @invalid_attrs)
|
||||
# |> render_change() =~ dgettext("errors", "can't be blank")
|
||||
|
||||
{:ok, _view, html} =
|
||||
index_live
|
||||
|> form("#ammo_group-form")
|
||||
|> render_submit()
|
||||
|> follow_redirect(conn, Routes.ammo_group_index_path(conn, :index))
|
||||
|
||||
assert html =~ dgettext("prompts", "Ammo added successfully")
|
||||
assert html =~ "42"
|
||||
assert html =~ gettext("$%{amount}", amount: 120.5 |> :erlang.float_to_binary(decimals: 2))
|
||||
end
|
||||
|
||||
test "clones ammo_group in listing with updates", %{conn: conn, ammo_group: ammo_group} do
|
||||
{:ok, index_live, _html} = live(conn, Routes.ammo_group_index_path(conn, :index))
|
||||
|
||||
html =
|
||||
index_live
|
||||
|> element("[data-qa=\"clone-#{ammo_group.id}\"]")
|
||||
|> render_click()
|
||||
|
||||
assert html =~ dgettext("actions", "Add Ammo")
|
||||
assert html =~ gettext("$%{amount}", amount: 120.5 |> :erlang.float_to_binary(decimals: 2))
|
||||
|
||||
assert_patch(index_live, Routes.ammo_group_index_path(conn, :clone, ammo_group))
|
||||
|
||||
# assert index_live
|
||||
# |> form("#ammo_group-form", ammo_group: @invalid_attrs)
|
||||
# |> render_change() =~ dgettext("errors", "can't be blank")
|
||||
|
||||
{:ok, _view, html} =
|
||||
index_live
|
||||
|> form("#ammo_group-form", ammo_group: Map.merge(@create_attrs, %{"count" => 43}))
|
||||
|> render_submit()
|
||||
|> follow_redirect(conn, Routes.ammo_group_index_path(conn, :index))
|
||||
|
||||
assert html =~ dgettext("prompts", "Ammo added successfully")
|
||||
assert html =~ "43"
|
||||
assert html =~ gettext("$%{amount}", amount: 120.5 |> :erlang.float_to_binary(decimals: 2))
|
||||
end
|
||||
|
||||
test "deletes ammo_group in listing", %{conn: conn, ammo_group: ammo_group} do
|
||||
{:ok, index_live, _html} = live(conn, Routes.ammo_group_index_path(conn, :index))
|
||||
|
||||
|
@ -121,6 +121,58 @@ defmodule CanneryWeb.AmmoTypeLiveTest do
|
||||
assert html =~ "some updated bullet_type"
|
||||
end
|
||||
|
||||
test "clones ammo_type in listing",
|
||||
%{conn: conn, current_user: current_user, ammo_type: ammo_type} do
|
||||
{:ok, index_live, _html} = live(conn, Routes.ammo_type_index_path(conn, :index))
|
||||
|
||||
html = index_live |> element("[data-qa=\"clone-#{ammo_type.id}\"]") |> render_click()
|
||||
assert html =~ gettext("New Ammo type")
|
||||
assert html =~ "some bullet_type"
|
||||
|
||||
assert_patch(index_live, Routes.ammo_type_index_path(conn, :clone, ammo_type))
|
||||
|
||||
# assert index_live
|
||||
# |> form("#ammo_type-form", ammo_type: @invalid_attrs)
|
||||
# |> render_change() =~ dgettext("errors", "can't be blank")
|
||||
|
||||
{:ok, _view, html} =
|
||||
index_live
|
||||
|> form("#ammo_type-form", ammo_type: @create_attrs)
|
||||
|> render_submit()
|
||||
|> follow_redirect(conn, Routes.ammo_type_index_path(conn, :index))
|
||||
|
||||
ammo_type = ammo_type.id |> Ammo.get_ammo_type!(current_user)
|
||||
assert html =~ dgettext("prompts", "%{name} created successfully", name: ammo_type.name)
|
||||
assert html =~ "some bullet_type"
|
||||
end
|
||||
|
||||
test "clones ammo_type in listing with updates",
|
||||
%{conn: conn, current_user: current_user, ammo_type: ammo_type} do
|
||||
{:ok, index_live, _html} = live(conn, Routes.ammo_type_index_path(conn, :index))
|
||||
|
||||
html = index_live |> element("[data-qa=\"clone-#{ammo_type.id}\"]") |> render_click()
|
||||
assert html =~ gettext("New Ammo type")
|
||||
assert html =~ "some bullet_type"
|
||||
|
||||
assert_patch(index_live, Routes.ammo_type_index_path(conn, :clone, ammo_type))
|
||||
|
||||
# assert index_live
|
||||
# |> form("#ammo_type-form", ammo_type: @invalid_attrs)
|
||||
# |> render_change() =~ dgettext("errors", "can't be blank")
|
||||
|
||||
{:ok, _view, html} =
|
||||
index_live
|
||||
|> form("#ammo_type-form",
|
||||
ammo_type: Map.merge(@create_attrs, %{"bullet_type" => "some updated bullet_type"})
|
||||
)
|
||||
|> render_submit()
|
||||
|> follow_redirect(conn, Routes.ammo_type_index_path(conn, :index))
|
||||
|
||||
ammo_type = ammo_type.id |> Ammo.get_ammo_type!(current_user)
|
||||
assert html =~ dgettext("prompts", "%{name} created successfully", name: ammo_type.name)
|
||||
assert html =~ "some updated bullet_type"
|
||||
end
|
||||
|
||||
test "deletes ammo_type in listing", %{conn: conn, ammo_type: ammo_type} do
|
||||
{:ok, index_live, _html} = live(conn, Routes.ammo_type_index_path(conn, :index))
|
||||
|
||||
@ -129,22 +181,59 @@ defmodule CanneryWeb.AmmoTypeLiveTest do
|
||||
end
|
||||
end
|
||||
|
||||
describe "Index with ammo group" do
|
||||
setup [:register_and_log_in_user, :create_ammo_type, :create_ammo_group]
|
||||
|
||||
test "shows used ammo groups on toggle",
|
||||
%{conn: conn, ammo_group: ammo_group, current_user: current_user} do
|
||||
{:ok, index_live, html} = live(conn, Routes.ammo_type_index_path(conn, :index))
|
||||
|
||||
assert html =~ dgettext("actions", "Show used")
|
||||
refute html =~ gettext("Used rounds")
|
||||
refute html =~ gettext("Total ever rounds")
|
||||
refute html =~ gettext("Used packs")
|
||||
refute html =~ gettext("Total ever packs")
|
||||
|
||||
html = index_live |> element("[data-qa=\"toggle_show_used\"]") |> render_click()
|
||||
|
||||
assert html =~ gettext("Used rounds")
|
||||
assert html =~ gettext("Total ever rounds")
|
||||
assert html =~ gettext("Used packs")
|
||||
assert html =~ gettext("Total ever packs")
|
||||
|
||||
assert html =~ "20"
|
||||
assert html =~ "0"
|
||||
assert html =~ "1"
|
||||
|
||||
shot_group_fixture(%{"count" => 5}, current_user, ammo_group)
|
||||
|
||||
{:ok, index_live, _html} = live(conn, Routes.ammo_type_index_path(conn, :index))
|
||||
html = index_live |> element("[data-qa=\"toggle_show_used\"]") |> render_click()
|
||||
|
||||
assert html =~ "15"
|
||||
assert html =~ "5"
|
||||
end
|
||||
end
|
||||
|
||||
describe "Show ammo type" do
|
||||
setup [:register_and_log_in_user, :create_ammo_type]
|
||||
|
||||
test "displays ammo_type", %{conn: conn, ammo_type: ammo_type} do
|
||||
test "displays ammo_type", %{
|
||||
conn: conn,
|
||||
ammo_type: %{name: name, bullet_type: bullet_type} = ammo_type
|
||||
} do
|
||||
{:ok, _show_live, html} = live(conn, Routes.ammo_type_show_path(conn, :show, ammo_type))
|
||||
|
||||
assert html =~ gettext("Show Ammo type")
|
||||
assert html =~ ammo_type.bullet_type
|
||||
assert html =~ name
|
||||
assert html =~ bullet_type
|
||||
end
|
||||
|
||||
test "updates ammo_type within modal",
|
||||
%{conn: conn, current_user: current_user, ammo_type: ammo_type} do
|
||||
%{conn: conn, current_user: current_user, ammo_type: %{name: name} = ammo_type} do
|
||||
{:ok, show_live, _html} = live(conn, Routes.ammo_type_show_path(conn, :show, ammo_type))
|
||||
|
||||
assert show_live |> element("[data-qa=\"edit\"]") |> render_click() =~
|
||||
gettext("Edit Ammo type")
|
||||
gettext("Edit %{ammo_type_name}", ammo_type_name: name)
|
||||
|
||||
assert_patch(show_live, Routes.ammo_type_show_path(conn, :edit, ammo_type))
|
||||
|
||||
@ -167,20 +256,35 @@ defmodule CanneryWeb.AmmoTypeLiveTest do
|
||||
describe "Show ammo type with ammo group" do
|
||||
setup [:register_and_log_in_user, :create_ammo_type, :create_ammo_group]
|
||||
|
||||
test "displays ammo group", %{conn: conn, ammo_type: ammo_type, container: container} do
|
||||
test "displays ammo group", %{
|
||||
conn: conn,
|
||||
ammo_type: %{name: ammo_type_name} = ammo_type,
|
||||
container: %{name: container_name}
|
||||
} do
|
||||
{:ok, _show_live, html} = live(conn, Routes.ammo_type_show_path(conn, :show, ammo_type))
|
||||
|
||||
assert html =~ gettext("Show Ammo type")
|
||||
assert html =~ ammo_type_name
|
||||
assert html =~ "some ammo group"
|
||||
assert html =~ container.name
|
||||
assert html =~ container_name
|
||||
end
|
||||
|
||||
test "displays ammo group in table",
|
||||
%{conn: conn, ammo_type: ammo_type, container: %{name: container_name}} do
|
||||
{:ok, show_live, _html} = live(conn, Routes.ammo_type_show_path(conn, :show, ammo_type))
|
||||
|
||||
html = show_live |> element("[data-qa=\"toggle_table\"]") |> render_click()
|
||||
assert_patch(show_live, Routes.ammo_type_show_path(conn, :table, ammo_type))
|
||||
|
||||
assert html =~ "some ammo group"
|
||||
assert html =~ container_name
|
||||
end
|
||||
end
|
||||
|
||||
describe "Show ammo type with empty ammo group" do
|
||||
setup [:register_and_log_in_user, :create_ammo_type, :create_empty_ammo_group]
|
||||
|
||||
test "hides empty ammo groups by default",
|
||||
%{conn: conn, ammo_type: ammo_type} do
|
||||
test "displays empty ammo groups on toggle",
|
||||
%{conn: conn, ammo_type: ammo_type, container: %{name: container_name}} do
|
||||
{:ok, show_live, html} = live(conn, Routes.ammo_type_show_path(conn, :show, ammo_type))
|
||||
|
||||
assert html =~ dgettext("actions", "Show used")
|
||||
@ -190,6 +294,24 @@ defmodule CanneryWeb.AmmoTypeLiveTest do
|
||||
|
||||
assert html =~ "some ammo group"
|
||||
assert html =~ "Empty"
|
||||
assert html =~ container_name
|
||||
end
|
||||
|
||||
test "displays empty ammo groups in table on toggle",
|
||||
%{conn: conn, ammo_type: ammo_type, container: %{name: container_name}} do
|
||||
{:ok, show_live, _html} = live(conn, Routes.ammo_type_show_path(conn, :show, ammo_type))
|
||||
|
||||
html = show_live |> element("[data-qa=\"toggle_table\"]") |> render_click()
|
||||
assert_patch(show_live, Routes.ammo_type_show_path(conn, :table, ammo_type))
|
||||
|
||||
assert html =~ dgettext("actions", "Show used")
|
||||
refute html =~ "some ammo group"
|
||||
|
||||
html = show_live |> element("[data-qa=\"toggle_show_used\"]") |> render_click()
|
||||
|
||||
assert html =~ "some ammo group"
|
||||
assert html =~ "Empty"
|
||||
assert html =~ container_name
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -46,16 +46,23 @@ defmodule CanneryWeb.ContainerLiveTest do
|
||||
%{container: container}
|
||||
end
|
||||
|
||||
defp create_ammo_group(%{container: container, current_user: current_user}) do
|
||||
ammo_type = ammo_type_fixture(@ammo_type_attrs, current_user)
|
||||
{1, [ammo_group]} = ammo_group_fixture(@ammo_group_attrs, ammo_type, container, current_user)
|
||||
|
||||
%{ammo_type: ammo_type, ammo_group: ammo_group}
|
||||
end
|
||||
|
||||
defp create_empty_ammo_group(%{container: container, current_user: current_user}) do
|
||||
ammo_type = ammo_type_fixture(@ammo_type_attrs, current_user)
|
||||
{1, [ammo_group]} = ammo_group_fixture(@ammo_group_attrs, ammo_type, container, current_user)
|
||||
shot_group = shot_group_fixture(@shot_group_attrs, current_user, ammo_group)
|
||||
ammo_group = ammo_group |> Repo.reload!()
|
||||
|
||||
%{ammo_group: ammo_group, shot_group: shot_group}
|
||||
%{ammo_type: ammo_type, ammo_group: ammo_group, shot_group: shot_group}
|
||||
end
|
||||
|
||||
describe "Index" do
|
||||
describe "Index regular" do
|
||||
setup [:register_and_log_in_user, :create_container]
|
||||
|
||||
test "lists all containers", %{conn: conn, container: container} do
|
||||
@ -114,6 +121,63 @@ defmodule CanneryWeb.ContainerLiveTest do
|
||||
assert html =~ "some updated location"
|
||||
end
|
||||
|
||||
test "clones container in listing", %{
|
||||
conn: conn,
|
||||
current_user: current_user,
|
||||
container: container
|
||||
} do
|
||||
{:ok, index_live, _html} = live(conn, Routes.container_index_path(conn, :index))
|
||||
|
||||
html = index_live |> element("[data-qa=\"clone-#{container.id}\"]") |> render_click()
|
||||
assert html =~ gettext("New Container")
|
||||
assert html =~ "some location"
|
||||
|
||||
assert_patch(index_live, Routes.container_index_path(conn, :clone, container))
|
||||
|
||||
# assert index_live
|
||||
# |> form("#container-form", container: @invalid_attrs)
|
||||
# |> render_change() =~ dgettext("errors", "can't be blank")
|
||||
|
||||
{:ok, _view, html} =
|
||||
index_live
|
||||
|> form("#container-form", container: @create_attrs)
|
||||
|> render_submit()
|
||||
|> follow_redirect(conn, Routes.container_index_path(conn, :index))
|
||||
|
||||
container = container.id |> Containers.get_container!(current_user)
|
||||
assert html =~ dgettext("prompts", "%{name} created successfully", name: container.name)
|
||||
assert html =~ "some location"
|
||||
end
|
||||
|
||||
test "clones container in listing with updates", %{
|
||||
conn: conn,
|
||||
current_user: current_user,
|
||||
container: container
|
||||
} do
|
||||
{:ok, index_live, _html} = live(conn, Routes.container_index_path(conn, :index))
|
||||
|
||||
assert index_live |> element("[data-qa=\"clone-#{container.id}\"]") |> render_click() =~
|
||||
gettext("New Container")
|
||||
|
||||
assert_patch(index_live, Routes.container_index_path(conn, :clone, container))
|
||||
|
||||
# assert index_live
|
||||
# |> form("#container-form", container: @invalid_attrs)
|
||||
# |> render_change() =~ dgettext("errors", "can't be blank")
|
||||
|
||||
{:ok, _view, html} =
|
||||
index_live
|
||||
|> form("#container-form",
|
||||
container: Map.merge(@create_attrs, %{location: "some updated location"})
|
||||
)
|
||||
|> render_submit()
|
||||
|> follow_redirect(conn, Routes.container_index_path(conn, :index))
|
||||
|
||||
container = container.id |> Containers.get_container!(current_user)
|
||||
assert html =~ dgettext("prompts", "%{name} created successfully", name: container.name)
|
||||
assert html =~ "some updated location"
|
||||
end
|
||||
|
||||
test "deletes container in listing", %{conn: conn, container: container} do
|
||||
{:ok, index_live, _html} = live(conn, Routes.container_index_path(conn, :index))
|
||||
|
||||
@ -122,14 +186,141 @@ defmodule CanneryWeb.ContainerLiveTest do
|
||||
end
|
||||
end
|
||||
|
||||
describe "Index table" do
|
||||
setup [:register_and_log_in_user, :create_container]
|
||||
|
||||
test "lists all containers", %{conn: conn, container: container} do
|
||||
{:ok, _index_live, html} = live(conn, Routes.container_index_path(conn, :table))
|
||||
|
||||
assert html =~ gettext("Containers")
|
||||
assert html =~ container.location
|
||||
end
|
||||
|
||||
test "saves new container", %{conn: conn, container: container} do
|
||||
{:ok, index_live, _html} = live(conn, Routes.container_index_path(conn, :table))
|
||||
|
||||
assert index_live |> element("a", dgettext("actions", "New Container")) |> render_click() =~
|
||||
gettext("New Container")
|
||||
|
||||
assert_patch(index_live, Routes.container_index_path(conn, :new))
|
||||
|
||||
# assert index_live
|
||||
# |> form("#container-form", container: @invalid_attrs)
|
||||
# |> render_change() =~ dgettext("errors", "can't be blank")
|
||||
|
||||
{:ok, _view, html} =
|
||||
index_live
|
||||
|> form("#container-form", container: @create_attrs)
|
||||
|> render_submit()
|
||||
|> follow_redirect(conn, Routes.container_index_path(conn, :table))
|
||||
|
||||
assert html =~ dgettext("prompts", "%{name} created successfully", name: container.name)
|
||||
assert html =~ "some location"
|
||||
end
|
||||
|
||||
test "updates container in listing", %{
|
||||
conn: conn,
|
||||
current_user: current_user,
|
||||
container: container
|
||||
} do
|
||||
{:ok, index_live, _html} = live(conn, Routes.container_index_path(conn, :table))
|
||||
|
||||
assert index_live |> element("[data-qa=\"edit-#{container.id}\"]") |> render_click() =~
|
||||
gettext("Edit %{name}", name: container.name)
|
||||
|
||||
assert_patch(index_live, Routes.container_index_path(conn, :edit, container))
|
||||
|
||||
# assert index_live
|
||||
# |> form("#container-form", container: @invalid_attrs)
|
||||
# |> render_change() =~ dgettext("errors", "can't be blank")
|
||||
|
||||
{:ok, _view, html} =
|
||||
index_live
|
||||
|> form("#container-form", container: @update_attrs)
|
||||
|> render_submit()
|
||||
|> follow_redirect(conn, Routes.container_index_path(conn, :table))
|
||||
|
||||
container = container.id |> Containers.get_container!(current_user)
|
||||
assert html =~ dgettext("prompts", "%{name} updated successfully", name: container.name)
|
||||
assert html =~ "some updated location"
|
||||
end
|
||||
|
||||
test "clones container in listing", %{
|
||||
conn: conn,
|
||||
current_user: current_user,
|
||||
container: container
|
||||
} do
|
||||
{:ok, index_live, _html} = live(conn, Routes.container_index_path(conn, :index))
|
||||
|
||||
html = index_live |> element("[data-qa=\"clone-#{container.id}\"]") |> render_click()
|
||||
assert html =~ gettext("New Container")
|
||||
assert html =~ "some location"
|
||||
|
||||
assert_patch(index_live, Routes.container_index_path(conn, :clone, container))
|
||||
|
||||
# assert index_live
|
||||
# |> form("#container-form", container: @invalid_attrs)
|
||||
# |> render_change() =~ dgettext("errors", "can't be blank")
|
||||
|
||||
{:ok, _view, html} =
|
||||
index_live
|
||||
|> form("#container-form", container: @create_attrs)
|
||||
|> render_submit()
|
||||
|> follow_redirect(conn, Routes.container_index_path(conn, :index))
|
||||
|
||||
container = container.id |> Containers.get_container!(current_user)
|
||||
assert html =~ dgettext("prompts", "%{name} created successfully", name: container.name)
|
||||
assert html =~ "some location"
|
||||
end
|
||||
|
||||
test "clones container in listing with updates", %{
|
||||
conn: conn,
|
||||
current_user: current_user,
|
||||
container: container
|
||||
} do
|
||||
{:ok, index_live, _html} = live(conn, Routes.container_index_path(conn, :index))
|
||||
|
||||
assert index_live |> element("[data-qa=\"clone-#{container.id}\"]") |> render_click() =~
|
||||
gettext("New Container")
|
||||
|
||||
assert_patch(index_live, Routes.container_index_path(conn, :clone, container))
|
||||
|
||||
# assert index_live
|
||||
# |> form("#container-form", container: @invalid_attrs)
|
||||
# |> render_change() =~ dgettext("errors", "can't be blank")
|
||||
|
||||
{:ok, _view, html} =
|
||||
index_live
|
||||
|> form("#container-form",
|
||||
container: Map.merge(@create_attrs, %{location: "some updated location"})
|
||||
)
|
||||
|> render_submit()
|
||||
|> follow_redirect(conn, Routes.container_index_path(conn, :index))
|
||||
|
||||
container = container.id |> Containers.get_container!(current_user)
|
||||
assert html =~ dgettext("prompts", "%{name} created successfully", name: container.name)
|
||||
assert html =~ "some updated location"
|
||||
end
|
||||
|
||||
test "deletes container in listing", %{conn: conn, container: container} do
|
||||
{:ok, index_live, _html} = live(conn, Routes.container_index_path(conn, :table))
|
||||
|
||||
assert index_live |> element("[data-qa=\"delete-#{container.id}\"]") |> render_click()
|
||||
refute has_element?(index_live, "#container-#{container.id}")
|
||||
end
|
||||
end
|
||||
|
||||
describe "Show" do
|
||||
setup [:register_and_log_in_user, :create_container]
|
||||
|
||||
test "displays container", %{conn: conn, container: container} do
|
||||
test "displays container", %{
|
||||
conn: conn,
|
||||
container: %{name: name, location: location} = container
|
||||
} do
|
||||
{:ok, _show_live, html} = live(conn, Routes.container_show_path(conn, :show, container))
|
||||
|
||||
assert html =~ gettext("Show %{name}", name: container.name)
|
||||
assert html =~ container.location
|
||||
assert html =~ name
|
||||
assert html =~ location
|
||||
end
|
||||
|
||||
test "updates container within modal", %{
|
||||
@ -160,11 +351,34 @@ defmodule CanneryWeb.ContainerLiveTest do
|
||||
end
|
||||
end
|
||||
|
||||
describe "Show with ammo group" do
|
||||
setup [:register_and_log_in_user, :create_container, :create_ammo_group]
|
||||
|
||||
test "displays ammo group",
|
||||
%{conn: conn, ammo_type: %{name: ammo_type_name}, container: container} do
|
||||
{:ok, _show_live, html} = live(conn, Routes.container_show_path(conn, :show, container))
|
||||
|
||||
assert html =~ ammo_type_name
|
||||
assert html =~ "some ammo group"
|
||||
end
|
||||
|
||||
test "displays ammo group in table",
|
||||
%{conn: conn, ammo_type: %{name: ammo_type_name}, container: container} do
|
||||
{:ok, show_live, _html} = live(conn, Routes.container_show_path(conn, :show, container))
|
||||
|
||||
html = show_live |> element("[data-qa=\"toggle_table\"]") |> render_click()
|
||||
assert_patch(show_live, Routes.container_show_path(conn, :table, container))
|
||||
|
||||
assert html =~ ammo_type_name
|
||||
assert html =~ "some ammo group"
|
||||
end
|
||||
end
|
||||
|
||||
describe "Show with empty ammo group" do
|
||||
setup [:register_and_log_in_user, :create_container, :create_empty_ammo_group]
|
||||
|
||||
test "hides empty ammo groups by default",
|
||||
%{conn: conn, container: container} do
|
||||
%{conn: conn, ammo_type: %{name: ammo_type_name}, container: container} do
|
||||
{:ok, show_live, html} = live(conn, Routes.container_show_path(conn, :show, container))
|
||||
|
||||
assert html =~ dgettext("actions", "Show used")
|
||||
@ -172,6 +386,24 @@ defmodule CanneryWeb.ContainerLiveTest do
|
||||
|
||||
html = show_live |> element("[data-qa=\"toggle_show_used\"]") |> render_click()
|
||||
|
||||
assert html =~ ammo_type_name
|
||||
assert html =~ "some ammo group"
|
||||
assert html =~ "Empty"
|
||||
end
|
||||
|
||||
test "displays empty ammo groups in table on toggle",
|
||||
%{conn: conn, ammo_type: %{name: ammo_type_name}, container: container} do
|
||||
{:ok, show_live, _html} = live(conn, Routes.container_show_path(conn, :show, container))
|
||||
|
||||
html = show_live |> element("[data-qa=\"toggle_table\"]") |> render_click()
|
||||
assert_patch(show_live, Routes.container_show_path(conn, :table, container))
|
||||
|
||||
assert html =~ dgettext("actions", "Show used")
|
||||
refute html =~ "some ammo group"
|
||||
|
||||
html = show_live |> element("[data-qa=\"toggle_show_used\"]") |> render_click()
|
||||
|
||||
assert html =~ ammo_type_name
|
||||
assert html =~ "some ammo group"
|
||||
assert html =~ "Empty"
|
||||
end
|
||||
|
Reference in New Issue
Block a user