diff --git a/CHANGELOG.md b/CHANGELOG.md index 0bdbea7e..0b0164e1 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 f8aecad7..27931c35 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 107f9126..7de1f5c0 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 5b9e9d49..875b0e1c 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 e928e626..afa756ec 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 e5fb55c3..85b9577b 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 7ff805d0..ba72ded8 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 d7f66232..0c648275 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