forked from shibao/cannery
fix tests
This commit is contained in:
parent
a19ec682e6
commit
91288a9ffa
@ -5,7 +5,7 @@ defmodule CanneryWeb.Components.ContainerCard do
|
||||
|
||||
use CanneryWeb, :component
|
||||
import CanneryWeb.Components.TagCard
|
||||
alias Cannery.{Repo, Containers}
|
||||
alias Cannery.{Containers, Repo}
|
||||
alias CanneryWeb.Endpoint
|
||||
|
||||
def container_card(%{container: container} = assigns) do
|
||||
|
@ -4,7 +4,7 @@ defmodule CanneryWeb.ContainerLive.EditTagsComponent do
|
||||
"""
|
||||
|
||||
use CanneryWeb, :live_component
|
||||
alias Cannery.{Accounts.User, Containers, Containers.Container, Tags, Tags.Tag, Repo}
|
||||
alias Cannery.{Accounts.User, Containers, Containers.Container, Repo, Tags, Tags.Tag}
|
||||
alias Phoenix.LiveView.Socket
|
||||
|
||||
@impl true
|
||||
|
@ -9,7 +9,13 @@ defmodule CanneryWeb.HomeLive do
|
||||
@impl true
|
||||
def mount(_params, session, socket) do
|
||||
admins = Accounts.list_users_by_role(:admin)
|
||||
{:ok, socket |> assign_defaults(session) |> assign(query: "", results: %{}, admins: admins)}
|
||||
|
||||
socket =
|
||||
socket
|
||||
|> assign_defaults(session)
|
||||
|> assign(page_title: "Home", query: "", results: %{}, admins: admins)
|
||||
|
||||
{:ok, socket}
|
||||
end
|
||||
|
||||
@impl true
|
||||
|
@ -5,7 +5,11 @@
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<%= csrf_meta_tag() %>
|
||||
<%= live_title_tag(assigns[:page_title], suffix: " | Cannery") %>
|
||||
<%= if(assigns |> Map.has_key?(:page_title),
|
||||
do: "#{assigns.page_title} | Cannery",
|
||||
else: "Cannery"
|
||||
)
|
||||
|> live_title_tag(suffix: "") %>
|
||||
<link phx-track-static rel="stylesheet" href={Routes.static_path(@conn, "/css/app.css")} />
|
||||
<script
|
||||
defer
|
||||
|
@ -11,12 +11,12 @@ msgid ""
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/home_live.ex:57
|
||||
#: lib/cannery_web/live/home_live.ex:63
|
||||
msgid "%{name} lets you easily keep an eye on your ammo levels before and after range day"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/home_live.ex:79
|
||||
#: lib/cannery_web/live/home_live.ex:85
|
||||
msgid "Access from any internet-capable device"
|
||||
msgstr ""
|
||||
|
||||
@ -26,7 +26,7 @@ msgid "Admins"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/home_live.ex:93
|
||||
#: lib/cannery_web/live/home_live.ex:99
|
||||
msgid "Admins:"
|
||||
msgstr ""
|
||||
|
||||
@ -44,7 +44,7 @@ msgid "Ammo type"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:78
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:94
|
||||
msgid "Average Price paid"
|
||||
msgstr ""
|
||||
|
||||
@ -150,7 +150,7 @@ msgid "Disable"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/home_live.ex:54
|
||||
#: lib/cannery_web/live/home_live.ex:60
|
||||
msgid "Easy to Use:"
|
||||
msgstr ""
|
||||
|
||||
@ -206,7 +206,7 @@ msgid "Incendiary"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/home_live.ex:88
|
||||
#: lib/cannery_web/live/home_live.ex:94
|
||||
msgid "Instance Information"
|
||||
msgstr ""
|
||||
|
||||
@ -216,7 +216,7 @@ msgid "Invite Disabled"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/home_live.ex:119
|
||||
#: lib/cannery_web/live/home_live.ex:125
|
||||
msgid "Invite Only"
|
||||
msgstr ""
|
||||
|
||||
@ -330,7 +330,7 @@ msgid "No Ammo Types"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:98
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:114
|
||||
msgid "No ammo for this type"
|
||||
msgstr ""
|
||||
|
||||
@ -401,17 +401,17 @@ msgid "Primer type"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/home_live.ex:118
|
||||
#: lib/cannery_web/live/home_live.ex:124
|
||||
msgid "Public Signups"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/home_live.ex:66
|
||||
#: lib/cannery_web/live/home_live.ex:72
|
||||
msgid "Secure:"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/home_live.ex:69
|
||||
#: lib/cannery_web/live/home_live.ex:75
|
||||
msgid "Self-host your own instance, or use an instance from someone you trust."
|
||||
msgstr ""
|
||||
|
||||
@ -436,7 +436,7 @@ msgid "Show Ammo type"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/home_live.ex:76
|
||||
#: lib/cannery_web/live/home_live.ex:82
|
||||
msgid "Simple:"
|
||||
msgstr ""
|
||||
|
||||
@ -467,7 +467,7 @@ msgid "Text color"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/home_live.ex:45
|
||||
#: lib/cannery_web/live/home_live.ex:51
|
||||
msgid "The self-hosted firearm tracker website"
|
||||
msgstr ""
|
||||
|
||||
@ -511,12 +511,12 @@ msgid "Uses left"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/home_live.ex:41
|
||||
#: lib/cannery_web/live/home_live.ex:47
|
||||
msgid "Welcome to %{name}"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/home_live.ex:70
|
||||
#: lib/cannery_web/live/home_live.ex:76
|
||||
msgid "Your data stays with you, period"
|
||||
msgstr ""
|
||||
|
||||
@ -649,7 +649,7 @@ msgstr ""
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:64
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:32
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:39
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:82
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:98
|
||||
msgid "$%{amount}"
|
||||
msgstr ""
|
||||
|
||||
@ -759,7 +759,7 @@ msgid "Show %{name}"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:88
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:104
|
||||
msgid "No cost information"
|
||||
msgstr ""
|
||||
|
||||
@ -792,3 +792,18 @@ msgstr ""
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:111
|
||||
msgid "Rounds used"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:77
|
||||
msgid "Current # of rounds:"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:32
|
||||
msgid "Total # of rounds"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:85
|
||||
msgid "Total rounds shot:"
|
||||
msgstr ""
|
||||
|
@ -32,14 +32,14 @@ msgid "Add your first type!"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:17
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:46
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:16
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:45
|
||||
msgid "Change email"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:61
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:102
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:60
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:101
|
||||
msgid "Change password"
|
||||
msgstr ""
|
||||
|
||||
@ -49,14 +49,14 @@ msgid "Create Invite"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:109
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:108
|
||||
msgid "Delete User"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/templates/user_registration/new.html.heex:44
|
||||
#: lib/cannery_web/templates/user_registration/new.html.heex:43
|
||||
#: lib/cannery_web/templates/user_reset_password/new.html.heex:3
|
||||
#: lib/cannery_web/templates/user_session/new.html.heex:46
|
||||
#: lib/cannery_web/templates/user_session/new.html.heex:45
|
||||
msgid "Forgot your password?"
|
||||
msgstr ""
|
||||
|
||||
@ -67,12 +67,12 @@ msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/components/topbar.ex:108
|
||||
#: lib/cannery_web/templates/user_confirmation/new.html.heex:31
|
||||
#: lib/cannery_web/templates/user_registration/new.html.heex:40
|
||||
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:49
|
||||
#: lib/cannery_web/templates/user_reset_password/new.html.heex:31
|
||||
#: lib/cannery_web/templates/user_confirmation/new.html.heex:30
|
||||
#: lib/cannery_web/templates/user_registration/new.html.heex:39
|
||||
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:48
|
||||
#: lib/cannery_web/templates/user_reset_password/new.html.heex:30
|
||||
#: lib/cannery_web/templates/user_session/new.html.heex:3
|
||||
#: lib/cannery_web/templates/user_session/new.html.heex:34
|
||||
#: lib/cannery_web/templates/user_session/new.html.heex:33
|
||||
msgid "Log in"
|
||||
msgstr ""
|
||||
|
||||
@ -103,31 +103,31 @@ msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/components/topbar.ex:101
|
||||
#: lib/cannery_web/templates/user_confirmation/new.html.heex:26
|
||||
#: lib/cannery_web/templates/user_confirmation/new.html.heex:25
|
||||
#: lib/cannery_web/templates/user_registration/new.html.heex:3
|
||||
#: lib/cannery_web/templates/user_registration/new.html.heex:34
|
||||
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:44
|
||||
#: lib/cannery_web/templates/user_reset_password/new.html.heex:26
|
||||
#: lib/cannery_web/templates/user_session/new.html.heex:41
|
||||
#: lib/cannery_web/templates/user_registration/new.html.heex:33
|
||||
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:43
|
||||
#: lib/cannery_web/templates/user_reset_password/new.html.heex:25
|
||||
#: lib/cannery_web/templates/user_session/new.html.heex:40
|
||||
msgid "Register"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/templates/user_confirmation/new.html.heex:3
|
||||
#: lib/cannery_web/templates/user_confirmation/new.html.heex:17
|
||||
#: lib/cannery_web/templates/user_confirmation/new.html.heex:16
|
||||
msgid "Resend confirmation instructions"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:3
|
||||
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:35
|
||||
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:34
|
||||
msgid "Reset password"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:42
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:54
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:175
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:172
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:50
|
||||
#: lib/cannery_web/live/invite_live/form_component.html.heex:28
|
||||
#: lib/cannery_web/live/range_live/form_component.html.heex:40
|
||||
@ -136,7 +136,7 @@ msgid "Save"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/templates/user_reset_password/new.html.heex:17
|
||||
#: lib/cannery_web/templates/user_reset_password/new.html.heex:16
|
||||
msgid "Send instructions to reset password"
|
||||
msgstr ""
|
||||
|
||||
@ -146,7 +146,7 @@ msgid "Why not add one?"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/container_live/add_tag_component.html.heex:17
|
||||
#: lib/cannery_web/live/container_live/edit_tags_component.html.heex:52
|
||||
msgid "Add"
|
||||
msgstr ""
|
||||
|
||||
@ -162,13 +162,13 @@ msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:85
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:67
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:86
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:36
|
||||
msgid "Record shots"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:31
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:50
|
||||
msgid "Ammo Details"
|
||||
msgstr ""
|
||||
|
||||
@ -178,7 +178,7 @@ msgid "Add another container!"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:61
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:80
|
||||
msgid "Move containers"
|
||||
msgstr ""
|
||||
|
||||
|
@ -12,12 +12,12 @@ msgstr ""
|
||||
"Plural-Forms: nplurals=2\n"
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/home_live.ex:57
|
||||
#: lib/cannery_web/live/home_live.ex:63
|
||||
msgid "%{name} lets you easily keep an eye on your ammo levels before and after range day"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/home_live.ex:79
|
||||
#: lib/cannery_web/live/home_live.ex:85
|
||||
msgid "Access from any internet-capable device"
|
||||
msgstr ""
|
||||
|
||||
@ -27,7 +27,7 @@ msgid "Admins"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/home_live.ex:93
|
||||
#: lib/cannery_web/live/home_live.ex:99
|
||||
msgid "Admins:"
|
||||
msgstr ""
|
||||
|
||||
@ -55,14 +55,14 @@ msgid "Background color"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:157
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:154
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:67
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:55
|
||||
msgid "Blank"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:74
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:102
|
||||
msgid "Brass"
|
||||
msgstr ""
|
||||
|
||||
@ -115,8 +115,9 @@ msgid "Containers"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:161
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:158
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:68
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:56
|
||||
msgid "Corrosive"
|
||||
msgstr ""
|
||||
|
||||
@ -139,7 +140,7 @@ msgid "Description"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/components/container_card.ex:27
|
||||
#: lib/cannery_web/components/container_card.ex:31
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:8
|
||||
msgid "Description:"
|
||||
msgstr ""
|
||||
@ -150,7 +151,7 @@ msgid "Disable"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/home_live.ex:54
|
||||
#: lib/cannery_web/live/home_live.ex:60
|
||||
msgid "Easy to Use:"
|
||||
msgstr ""
|
||||
|
||||
@ -166,12 +167,6 @@ msgstr ""
|
||||
msgid "Edit Ammo type"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/container_live/index.ex:24
|
||||
#: lib/cannery_web/live/container_live/show.ex:89
|
||||
msgid "Edit Container"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/invite_live/index.ex:35
|
||||
msgid "Edit Invite"
|
||||
@ -198,20 +193,21 @@ msgid "FMJ"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:116
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:113
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:61
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:49
|
||||
msgid "Grains"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:153
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:150
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:66
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:54
|
||||
msgid "Incendiary"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/home_live.ex:88
|
||||
#: lib/cannery_web/live/home_live.ex:94
|
||||
msgid "Instance Information"
|
||||
msgstr ""
|
||||
|
||||
@ -221,7 +217,7 @@ msgid "Invite Disabled"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/home_live.ex:119
|
||||
#: lib/cannery_web/live/home_live.ex:125
|
||||
msgid "Invite Only"
|
||||
msgstr ""
|
||||
|
||||
@ -232,7 +228,7 @@ msgid "Invites"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/templates/user_session/new.html.heex:29
|
||||
#: lib/cannery_web/templates/user_session/new.html.heex:28
|
||||
msgid "Keep me logged in for 60 days"
|
||||
msgstr ""
|
||||
|
||||
@ -242,7 +238,7 @@ msgid "Listing Ammo types"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/container_live/index.ex:33
|
||||
#: lib/cannery_web/live/container_live/index.ex:38
|
||||
msgid "Listing Containers"
|
||||
msgstr ""
|
||||
|
||||
@ -263,7 +259,7 @@ msgid "Location"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/components/container_card.ex:39
|
||||
#: lib/cannery_web/components/container_card.ex:43
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:20
|
||||
msgid "Location:"
|
||||
msgstr ""
|
||||
@ -279,8 +275,9 @@ msgid "Manage"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:165
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:162
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:69
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:57
|
||||
msgid "Manufacturer"
|
||||
msgstr ""
|
||||
|
||||
@ -309,7 +306,7 @@ msgid "New Ammo type"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/container_live/index.ex:29
|
||||
#: lib/cannery_web/live/container_live/index.ex:33
|
||||
msgid "New Container"
|
||||
msgstr ""
|
||||
|
||||
@ -334,12 +331,12 @@ msgid "No Ammo Types"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:109
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:114
|
||||
msgid "No ammo for this type"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:88
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:77
|
||||
msgid "No ammo groups in this container"
|
||||
msgstr ""
|
||||
|
||||
@ -354,6 +351,7 @@ msgid "No invites"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/container_live/edit_tags_component.html.heex:30
|
||||
#: lib/cannery_web/live/tag_live/index.html.heex:10
|
||||
msgid "No tags"
|
||||
msgstr ""
|
||||
@ -361,7 +359,7 @@ msgstr ""
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:30
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:41
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:36
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:122
|
||||
#: lib/cannery_web/live/range_live/form_component.html.heex:29
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:67
|
||||
msgid "Notes"
|
||||
@ -369,7 +367,7 @@ msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:35
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:14
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:24
|
||||
msgid "Notes:"
|
||||
msgstr ""
|
||||
|
||||
@ -379,7 +377,7 @@ msgid "On the bookshelf"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:124
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:121
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:62
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:50
|
||||
msgid "Pressure"
|
||||
@ -393,34 +391,28 @@ msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:42
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:21
|
||||
msgid "Price paid:"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:131
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:128
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:63
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:51
|
||||
msgid "Primer type"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/home_live.ex:118
|
||||
#: lib/cannery_web/live/home_live.ex:124
|
||||
msgid "Public Signups"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:64
|
||||
msgid "Rimfire"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/home_live.ex:66
|
||||
#: lib/cannery_web/live/home_live.ex:72
|
||||
msgid "Secure:"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/home_live.ex:69
|
||||
#: lib/cannery_web/live/home_live.ex:75
|
||||
msgid "Self-host your own instance, or use an instance from someone you trust."
|
||||
msgstr ""
|
||||
|
||||
@ -445,12 +437,7 @@ msgid "Show Ammo type"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/container_live/show.ex:88
|
||||
msgid "Show Container"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/home_live.ex:76
|
||||
#: lib/cannery_web/live/home_live.ex:82
|
||||
msgid "Simple:"
|
||||
msgstr ""
|
||||
|
||||
@ -460,13 +447,12 @@ msgid "Steel"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:79
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:98
|
||||
msgid "Stored in"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/components/topbar.ex:40
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:60
|
||||
#: lib/cannery_web/live/tag_live/index.html.heex:3
|
||||
msgid "Tags"
|
||||
msgstr ""
|
||||
@ -482,18 +468,19 @@ msgid "Text color"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/home_live.ex:45
|
||||
#: lib/cannery_web/live/home_live.ex:51
|
||||
msgid "The self-hosted firearm tracker website"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:84
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:103
|
||||
msgid "This ammo group is not in a container"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:149
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:146
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:65
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:53
|
||||
msgid "Tracer"
|
||||
msgstr ""
|
||||
|
||||
@ -504,7 +491,7 @@ msgid "Type"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/components/container_card.ex:33
|
||||
#: lib/cannery_web/components/container_card.ex:37
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:14
|
||||
msgid "Type:"
|
||||
msgstr ""
|
||||
@ -525,20 +512,15 @@ msgid "Uses left"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/home_live.ex:41
|
||||
#: lib/cannery_web/live/home_live.ex:47
|
||||
msgid "Welcome to %{name}"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/home_live.ex:70
|
||||
#: lib/cannery_web/live/home_live.ex:76
|
||||
msgid "Your data stays with you, period"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/container_live/show.ex:90
|
||||
msgid "Add Tag to Container"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:49
|
||||
msgid "No tags for this container"
|
||||
@ -556,6 +538,7 @@ msgid "Range day"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:125
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:70
|
||||
msgid "Date"
|
||||
msgstr ""
|
||||
@ -571,13 +554,13 @@ msgid "No ammo staged"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:58
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:77
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:33
|
||||
msgid "Stage for range"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:57
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:76
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:32
|
||||
msgid "Unstage from range"
|
||||
msgstr ""
|
||||
@ -631,6 +614,7 @@ msgid "Rounds left"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:119
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:64
|
||||
msgid "Rounds shot"
|
||||
msgstr ""
|
||||
@ -664,7 +648,8 @@ msgstr ""
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:43
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:64
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:22
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:32
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:39
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:98
|
||||
msgid "$%{amount}"
|
||||
msgstr ""
|
||||
@ -689,7 +674,7 @@ msgid "Muzzle velocity"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:106
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:103
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:60
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:48
|
||||
msgid "Powder grains per charge"
|
||||
@ -703,24 +688,25 @@ msgid "Powder type"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:171
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:168
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:70
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:58
|
||||
msgid "UPC"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:81
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:80
|
||||
msgid "Confirm new password"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:34
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:90
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:33
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:89
|
||||
msgid "Current password"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:74
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:73
|
||||
msgid "New password"
|
||||
msgstr ""
|
||||
|
||||
@ -735,7 +721,9 @@ msgid "Unstage"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:140
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:137
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:64
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:52
|
||||
msgid "Firing type"
|
||||
msgstr ""
|
||||
|
||||
@ -748,3 +736,75 @@ msgstr ""
|
||||
#: lib/cannery_web/templates/layout/live.html.heex:37
|
||||
msgid "Loading..."
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/container_live/index.ex:29
|
||||
#: lib/cannery_web/live/container_live/show.ex:97
|
||||
msgid "Edit %{name}"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/container_live/index.ex:48
|
||||
#: lib/cannery_web/live/container_live/show.ex:98
|
||||
msgid "Edit %{name} tags"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
#: lib/cannery_web/components/container_card.ex:50
|
||||
msgid "Rounds:"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/container_live/show.ex:96
|
||||
msgid "Show %{name}"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:104
|
||||
msgid "No cost information"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:36
|
||||
msgid "% left"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:38
|
||||
msgid "Current value:"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:31
|
||||
msgid "Original cost:"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:13
|
||||
msgid "Original count:"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:18
|
||||
msgid "Percentage left:"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:111
|
||||
msgid "Rounds used"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:77
|
||||
msgid "Current # of rounds:"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:32
|
||||
msgid "Total # of rounds"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:85
|
||||
msgid "Total rounds shot:"
|
||||
msgstr ""
|
||||
|
@ -11,18 +11,18 @@ msgstr ""
|
||||
"Language: en\n"
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery/containers.ex:105
|
||||
#: lib/cannery/containers.ex:122
|
||||
msgid "Container must be empty before deleting"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/container_live/index.ex:55
|
||||
#: lib/cannery_web/live/container_live/show.ex:74
|
||||
#: lib/cannery_web/live/container_live/index.ex:71
|
||||
#: lib/cannery_web/live/container_live/show.ex:73
|
||||
msgid "Could not delete %{name}: %{error}"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/container_live/index.ex:43
|
||||
#: lib/cannery_web/live/container_live/index.ex:59
|
||||
msgid "Could not find that container"
|
||||
msgstr ""
|
||||
|
||||
@ -57,10 +57,10 @@ msgid "Not found"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/templates/user_registration/new.html.heex:17
|
||||
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:17
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:23
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:67
|
||||
#: lib/cannery_web/templates/user_registration/new.html.heex:16
|
||||
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:16
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:22
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:66
|
||||
msgid "Oops, something went wrong! Please check the errors below."
|
||||
msgstr ""
|
||||
|
||||
@ -133,7 +133,7 @@ msgid "Tag not found"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/container_live/add_tag_component.ex:35
|
||||
#: lib/cannery_web/live/container_live/edit_tags_component.ex:30
|
||||
msgid "Tag could not be added"
|
||||
msgstr ""
|
||||
|
||||
@ -153,3 +153,8 @@ msgstr ""
|
||||
#: lib/cannery_web/controllers/user_auth.ex:161
|
||||
msgid "You must confirm your account and log in to access this page."
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
#: lib/cannery_web/live/container_live/edit_tags_component.ex:52
|
||||
msgid "Tag could not be removed"
|
||||
msgstr ""
|
||||
|
@ -39,8 +39,8 @@ msgid "%{name} enabled succesfully"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/container_live/index.ex:48
|
||||
#: lib/cannery_web/live/container_live/show.ex:64
|
||||
#: lib/cannery_web/live/container_live/index.ex:64
|
||||
#: lib/cannery_web/live/container_live/show.ex:63
|
||||
msgid "%{name} has been deleted"
|
||||
msgstr ""
|
||||
|
||||
@ -86,7 +86,7 @@ msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:29
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:38
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:46
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:37
|
||||
#: lib/cannery_web/live/tag_live/index.html.heex:38
|
||||
msgid "Are you sure you want to delete %{name}?"
|
||||
@ -99,13 +99,13 @@ msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:120
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:47
|
||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:68
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:66
|
||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:75
|
||||
msgid "Are you sure you want to delete this ammo?"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:113
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:112
|
||||
msgid "Are you sure you want to delete your account?"
|
||||
msgstr ""
|
||||
|
||||
@ -155,14 +155,14 @@ msgid "Please check your email to verify your account"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/home_live.ex:97
|
||||
#: lib/cannery_web/live/home_live.ex:103
|
||||
msgid "Register to setup %{name}"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:44
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:55
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:176
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:173
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:52
|
||||
#: lib/cannery_web/live/invite_live/form_component.html.heex:30
|
||||
#: lib/cannery_web/live/range_live/form_component.html.heex:42
|
||||
@ -176,22 +176,22 @@ msgid "Your account has been deleted"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:71
|
||||
#: lib/cannery_web/live/container_live/edit_tags_component.html.heex:16
|
||||
msgid "Are you sure you want to remove the %{tag_name} tag from %{container_name}?"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/container_live/add_tag_component.ex:40
|
||||
#: lib/cannery_web/live/container_live/edit_tags_component.ex:36
|
||||
msgid "%{name} added successfully"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/container_live/show.ex:40
|
||||
#: lib/cannery_web/live/container_live/show.ex:39
|
||||
msgid "%{tag_name} has been removed from %{container_name}"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/container_live/add_tag_component.html.heex:19
|
||||
#: lib/cannery_web/live/container_live/edit_tags_component.html.heex:54
|
||||
msgid "Adding..."
|
||||
msgstr ""
|
||||
|
||||
@ -239,3 +239,8 @@ msgstr ""
|
||||
#: lib/cannery_web/live/invite_live/index.ex:123
|
||||
msgid "Copied to clipboard"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
#: lib/cannery_web/live/container_live/edit_tags_component.ex:58
|
||||
msgid "%{name} removed successfully"
|
||||
msgstr ""
|
||||
|
@ -99,7 +99,7 @@ msgstr ""
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:120
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:66
|
||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:68
|
||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:75
|
||||
msgid "Are you sure you want to delete this ammo?"
|
||||
msgstr ""
|
||||
|
||||
@ -154,7 +154,7 @@ msgid "Please check your email to verify your account"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/home_live.ex:97
|
||||
#: lib/cannery_web/live/home_live.ex:103
|
||||
msgid "Register to setup %{name}"
|
||||
msgstr ""
|
||||
|
||||
|
@ -120,12 +120,13 @@ defmodule Cannery.AmmoTest do
|
||||
|
||||
test "list_ammo_groups/0 returns all ammo_groups",
|
||||
%{ammo_group: ammo_group, current_user: current_user} do
|
||||
assert Ammo.list_ammo_groups(current_user) == [ammo_group]
|
||||
assert Ammo.list_ammo_groups(current_user) == [ammo_group] |> Repo.preload(:shot_groups)
|
||||
end
|
||||
|
||||
test "get_ammo_group!/1 returns the ammo_group with given id",
|
||||
%{ammo_group: ammo_group, current_user: current_user} do
|
||||
assert Ammo.get_ammo_group!(ammo_group.id, current_user) == ammo_group
|
||||
assert Ammo.get_ammo_group!(ammo_group.id, current_user) ==
|
||||
ammo_group |> Repo.preload(:shot_groups)
|
||||
end
|
||||
|
||||
test "create_ammo_group/1 with valid data creates a ammo_group",
|
||||
@ -167,7 +168,8 @@ defmodule Cannery.AmmoTest do
|
||||
assert {:error, %Changeset{}} =
|
||||
Ammo.update_ammo_group(ammo_group, @invalid_attrs, current_user)
|
||||
|
||||
assert ammo_group == Ammo.get_ammo_group!(ammo_group.id, current_user)
|
||||
assert ammo_group |> Repo.preload(:shot_groups) ==
|
||||
Ammo.get_ammo_group!(ammo_group.id, current_user)
|
||||
end
|
||||
|
||||
test "delete_ammo_group/1 deletes the ammo_group",
|
||||
|
@ -33,12 +33,14 @@ defmodule Cannery.ContainersTest do
|
||||
|
||||
test "list_containers/1 returns all containers",
|
||||
%{current_user: current_user, container: container} do
|
||||
assert Containers.list_containers(current_user) == [container]
|
||||
assert Containers.list_containers(current_user) ==
|
||||
[container |> Repo.preload([:ammo_groups, :tags])]
|
||||
end
|
||||
|
||||
test "get_container!/1 returns the container with given id",
|
||||
%{current_user: current_user, container: container} do
|
||||
assert Containers.get_container!(container.id, current_user) == container
|
||||
assert Containers.get_container!(container.id, current_user) ==
|
||||
container |> Repo.preload([:ammo_groups, :tags])
|
||||
end
|
||||
|
||||
test "create_container/1 with valid data creates a container", %{current_user: current_user} do
|
||||
@ -73,7 +75,8 @@ defmodule Cannery.ContainersTest do
|
||||
assert {:error, %Changeset{}} =
|
||||
Containers.update_container(container, current_user, @invalid_attrs)
|
||||
|
||||
assert container == Containers.get_container!(container.id, current_user)
|
||||
assert container |> Repo.preload([:ammo_groups, :tags]) ==
|
||||
Containers.get_container!(container.id, current_user)
|
||||
end
|
||||
|
||||
test "delete_container/1 deletes the container",
|
||||
|
@ -50,7 +50,7 @@ defmodule CanneryWeb.AmmoGroupLiveTest do
|
||||
|> follow_redirect(conn, Routes.ammo_group_index_path(conn, :index))
|
||||
|
||||
assert html =~ dgettext("prompts", "Ammo group created successfully")
|
||||
assert html =~ "some notes"
|
||||
assert html =~ "42"
|
||||
end
|
||||
|
||||
test "saves new shot_group", %{conn: conn, ammo_group: ammo_group} do
|
||||
@ -95,7 +95,7 @@ defmodule CanneryWeb.AmmoGroupLiveTest do
|
||||
|> follow_redirect(conn, Routes.ammo_group_index_path(conn, :index))
|
||||
|
||||
assert html =~ dgettext("prompts", "Ammo group updated successfully")
|
||||
assert html =~ "some updated notes"
|
||||
assert html =~ "43"
|
||||
end
|
||||
|
||||
test "deletes ammo_group in listing", %{conn: conn, ammo_group: ammo_group} do
|
||||
|
@ -70,7 +70,7 @@ defmodule CanneryWeb.ContainerLiveTest do
|
||||
{:ok, index_live, _html} = live(conn, Routes.container_index_path(conn, :index))
|
||||
|
||||
assert index_live |> element("[data-qa=\"edit-#{container.id}\"]") |> render_click() =~
|
||||
gettext("Edit Container")
|
||||
gettext("Edit %{name}", name: container.name)
|
||||
|
||||
assert_patch(index_live, Routes.container_index_path(conn, :edit, container))
|
||||
|
||||
@ -103,7 +103,7 @@ defmodule CanneryWeb.ContainerLiveTest do
|
||||
test "displays container", %{conn: conn, container: container} do
|
||||
{:ok, _show_live, html} = live(conn, Routes.container_show_path(conn, :show, container))
|
||||
|
||||
assert html =~ gettext("Show Container")
|
||||
assert html =~ gettext("Show %{name}", name: container.name)
|
||||
assert html =~ container.location
|
||||
end
|
||||
|
||||
@ -115,7 +115,7 @@ defmodule CanneryWeb.ContainerLiveTest do
|
||||
{:ok, show_live, _html} = live(conn, Routes.container_show_path(conn, :show, container))
|
||||
|
||||
assert show_live |> element("[data-qa=\"edit\"]") |> render_click() =~
|
||||
gettext("Edit Container")
|
||||
gettext("Edit %{name}", name: container.name)
|
||||
|
||||
assert_patch(show_live, Routes.container_show_path(conn, :edit, container))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user