From 22f13b0c57ba1e50fdc2ee6f920f3508c622e82a Mon Sep 17 00:00:00 2001 From: shibao Date: Fri, 23 Feb 2024 21:20:32 -0500 Subject: [PATCH] make ammo packs in containers directly navigable in table view --- CHANGELOG.md | 1 + .../live/container_live/show.html.heex | 15 +++++++++++++++ priv/gettext/actions.pot | 1 + priv/gettext/de/LC_MESSAGES/actions.po | 1 + priv/gettext/en/LC_MESSAGES/actions.po | 1 + priv/gettext/es/LC_MESSAGES/actions.po | 1 + priv/gettext/fr/LC_MESSAGES/actions.po | 1 + priv/gettext/ga/LC_MESSAGES/actions.po | 1 + 8 files changed, 22 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0bdbea7..0b0164e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,5 @@ # v0.9.6 +- Make ammo packs in containers directly navigable in table view - Update dependencies # v0.9.5 diff --git a/lib/cannery_web/live/container_live/show.html.heex b/lib/cannery_web/live/container_live/show.html.heex index f8aecad..27931c3 100644 --- a/lib/cannery_web/live/container_live/show.html.heex +++ b/lib/cannery_web/live/container_live/show.html.heex @@ -130,6 +130,21 @@ <%= type_name %> + <:actions :let={%{count: pack_count} = pack}> +
+ <.link + navigate={~p"/ammo/show/#{pack}"} + class="text-primary-600 link" + aria-label={ + dgettext("actions", "View pack of %{pack_count} bullets", + pack_count: pack_count + ) + } + > + + +
+ <% else %>
diff --git a/priv/gettext/actions.pot b/priv/gettext/actions.pot index 107f912..7de1f5c 100644 --- a/priv/gettext/actions.pot +++ b/priv/gettext/actions.pot @@ -305,6 +305,7 @@ msgstr "" msgid "Edit pack of %{pack_count} bullets" msgstr "" +#: lib/cannery_web/live/container_live/show.html.heex:139 #: lib/cannery_web/live/pack_live/index.html.heex:148 #: lib/cannery_web/live/type_live/show.html.heex:201 #, elixir-autogen, elixir-format diff --git a/priv/gettext/de/LC_MESSAGES/actions.po b/priv/gettext/de/LC_MESSAGES/actions.po index 5b9e9d4..875b0e1 100644 --- a/priv/gettext/de/LC_MESSAGES/actions.po +++ b/priv/gettext/de/LC_MESSAGES/actions.po @@ -318,6 +318,7 @@ msgstr "" msgid "Edit pack of %{pack_count} bullets" msgstr "" +#: lib/cannery_web/live/container_live/show.html.heex:139 #: lib/cannery_web/live/pack_live/index.html.heex:148 #: lib/cannery_web/live/type_live/show.html.heex:201 #, elixir-autogen, elixir-format, fuzzy diff --git a/priv/gettext/en/LC_MESSAGES/actions.po b/priv/gettext/en/LC_MESSAGES/actions.po index e928e62..afa756e 100644 --- a/priv/gettext/en/LC_MESSAGES/actions.po +++ b/priv/gettext/en/LC_MESSAGES/actions.po @@ -305,6 +305,7 @@ msgstr "" msgid "Edit pack of %{pack_count} bullets" msgstr "" +#: lib/cannery_web/live/container_live/show.html.heex:139 #: lib/cannery_web/live/pack_live/index.html.heex:148 #: lib/cannery_web/live/type_live/show.html.heex:201 #, elixir-autogen, elixir-format, fuzzy diff --git a/priv/gettext/es/LC_MESSAGES/actions.po b/priv/gettext/es/LC_MESSAGES/actions.po index e5fb55c..85b9577 100644 --- a/priv/gettext/es/LC_MESSAGES/actions.po +++ b/priv/gettext/es/LC_MESSAGES/actions.po @@ -318,6 +318,7 @@ msgstr "" msgid "Edit pack of %{pack_count} bullets" msgstr "" +#: lib/cannery_web/live/container_live/show.html.heex:139 #: lib/cannery_web/live/pack_live/index.html.heex:148 #: lib/cannery_web/live/type_live/show.html.heex:201 #, elixir-autogen, elixir-format, fuzzy diff --git a/priv/gettext/fr/LC_MESSAGES/actions.po b/priv/gettext/fr/LC_MESSAGES/actions.po index 7ff805d..ba72ded 100644 --- a/priv/gettext/fr/LC_MESSAGES/actions.po +++ b/priv/gettext/fr/LC_MESSAGES/actions.po @@ -318,6 +318,7 @@ msgstr "" msgid "Edit pack of %{pack_count} bullets" msgstr "" +#: lib/cannery_web/live/container_live/show.html.heex:139 #: lib/cannery_web/live/pack_live/index.html.heex:148 #: lib/cannery_web/live/type_live/show.html.heex:201 #, elixir-autogen, elixir-format, fuzzy diff --git a/priv/gettext/ga/LC_MESSAGES/actions.po b/priv/gettext/ga/LC_MESSAGES/actions.po index d7f6623..0c64827 100644 --- a/priv/gettext/ga/LC_MESSAGES/actions.po +++ b/priv/gettext/ga/LC_MESSAGES/actions.po @@ -316,6 +316,7 @@ msgstr "" msgid "Edit pack of %{pack_count} bullets" msgstr "" +#: lib/cannery_web/live/container_live/show.html.heex:139 #: lib/cannery_web/live/pack_live/index.html.heex:148 #: lib/cannery_web/live/type_live/show.html.heex:201 #, elixir-autogen, elixir-format, fuzzy