+
<.topbar current_user={assigns[:current_user]} />
-

Map.has_key?("info")} + class="alert alert-info" + role="alert" + phx-click="lv:clear-flash" + phx-value-key="info" + > + <%= live_flash(@flash, "info") %>

-

Map.has_key?("error")} + class="alert alert-danger" + role="alert" + phx-click="lv:clear-flash" + phx-value-key="error" + > + <%= live_flash(@flash, "error") %>

-
+
<%= @inner_content %>
+ +
+ + +

+ <%= gettext("Reconnecting...") %> +

+
diff --git a/lib/cannery_web/components/layouts/empty.html.heex b/lib/cannery_web/components/layouts/empty.html.heex new file mode 100644 index 0000000..430d018 --- /dev/null +++ b/lib/cannery_web/components/layouts/empty.html.heex @@ -0,0 +1 @@ +<%= @inner_block %> diff --git a/lib/cannery_web/components/layouts/live.html.heex b/lib/cannery_web/components/layouts/live.html.heex deleted file mode 100644 index eb0ac37..0000000 --- a/lib/cannery_web/components/layouts/live.html.heex +++ /dev/null @@ -1,45 +0,0 @@ -
-
- <.topbar current_user={assigns[:current_user]} /> - -
-

Map.has_key?("info")} - class="alert alert-info" - role="alert" - phx-click="lv:clear-flash" - phx-value-key="info" - > - <%= live_flash(@flash, "info") %> -

- -

Map.has_key?("error")} - class="alert alert-danger" - role="alert" - phx-click="lv:clear-flash" - phx-value-key="error" - > - <%= live_flash(@flash, "error") %> -

-
-
- -
- <%= @inner_content %> -
-
- -
- - -

- <%= gettext("Reconnecting...") %> -

-
diff --git a/mix.exs b/mix.exs index db08f1f..b3dcd50 100644 --- a/mix.exs +++ b/mix.exs @@ -4,7 +4,7 @@ defmodule Cannery.MixProject do def project do [ app: :cannery, - version: "0.9.6", + version: "0.9.7", elixir: "1.16.1", elixirc_paths: elixirc_paths(Mix.env()), start_permanent: Mix.env() == :prod, diff --git a/priv/gettext/de/LC_MESSAGES/default.po b/priv/gettext/de/LC_MESSAGES/default.po index 49215e3..e50682e 100644 --- a/priv/gettext/de/LC_MESSAGES/default.po +++ b/priv/gettext/de/LC_MESSAGES/default.po @@ -559,7 +559,7 @@ msgstr "Neues Passwort" msgid "Firing type" msgstr "Patronenhülsenform" -#: lib/cannery_web/components/layouts/live.html.heex:43 +#: lib/cannery_web/components/layouts/app.html.heex:43 #, elixir-autogen, elixir-format msgid "Reconnecting..." msgstr "Neu verbinden..." diff --git a/priv/gettext/default.pot b/priv/gettext/default.pot index b2214f2..5418819 100644 --- a/priv/gettext/default.pot +++ b/priv/gettext/default.pot @@ -553,7 +553,7 @@ msgstr "" msgid "Firing type" msgstr "" -#: lib/cannery_web/components/layouts/live.html.heex:43 +#: lib/cannery_web/components/layouts/app.html.heex:43 #, elixir-autogen, elixir-format msgid "Reconnecting..." msgstr "" diff --git a/priv/gettext/en/LC_MESSAGES/default.po b/priv/gettext/en/LC_MESSAGES/default.po index eb37481..8483717 100644 --- a/priv/gettext/en/LC_MESSAGES/default.po +++ b/priv/gettext/en/LC_MESSAGES/default.po @@ -553,7 +553,7 @@ msgstr "" msgid "Firing type" msgstr "" -#: lib/cannery_web/components/layouts/live.html.heex:43 +#: lib/cannery_web/components/layouts/app.html.heex:43 #, elixir-autogen, elixir-format msgid "Reconnecting..." msgstr "" diff --git a/priv/gettext/es/LC_MESSAGES/default.po b/priv/gettext/es/LC_MESSAGES/default.po index 0e0af3f..70b0bbb 100644 --- a/priv/gettext/es/LC_MESSAGES/default.po +++ b/priv/gettext/es/LC_MESSAGES/default.po @@ -560,7 +560,7 @@ msgstr "Nueva contraseña" msgid "Firing type" msgstr "Tipo de fuego" -#: lib/cannery_web/components/layouts/live.html.heex:43 +#: lib/cannery_web/components/layouts/app.html.heex:43 #, elixir-autogen, elixir-format msgid "Reconnecting..." msgstr "Reconectando..." diff --git a/priv/gettext/fr/LC_MESSAGES/default.po b/priv/gettext/fr/LC_MESSAGES/default.po index 2cb0ae9..893c873 100644 --- a/priv/gettext/fr/LC_MESSAGES/default.po +++ b/priv/gettext/fr/LC_MESSAGES/default.po @@ -561,7 +561,7 @@ msgstr "Nouveau mot de passe" msgid "Firing type" msgstr "Type d’allumage" -#: lib/cannery_web/components/layouts/live.html.heex:43 +#: lib/cannery_web/components/layouts/app.html.heex:43 #, elixir-autogen, elixir-format msgid "Reconnecting..." msgstr "Reconnexion en cours…" diff --git a/priv/gettext/ga/LC_MESSAGES/default.po b/priv/gettext/ga/LC_MESSAGES/default.po index ac43901..539ea7a 100644 --- a/priv/gettext/ga/LC_MESSAGES/default.po +++ b/priv/gettext/ga/LC_MESSAGES/default.po @@ -555,7 +555,7 @@ msgstr "" msgid "Firing type" msgstr "" -#: lib/cannery_web/components/layouts/live.html.heex:43 +#: lib/cannery_web/components/layouts/app.html.heex:43 #, elixir-autogen, elixir-format msgid "Reconnecting..." msgstr "" diff --git a/priv/gettext/it/LC_MESSAGES/default.po b/priv/gettext/it/LC_MESSAGES/default.po index 72c6d27..36e7d59 100644 --- a/priv/gettext/it/LC_MESSAGES/default.po +++ b/priv/gettext/it/LC_MESSAGES/default.po @@ -564,7 +564,7 @@ msgstr "" msgid "Firing type" msgstr "" -#: lib/cannery_web/components/layouts/live.html.heex:43 +#: lib/cannery_web/components/layouts/app.html.heex:43 #, elixir-autogen, elixir-format msgid "Reconnecting..." msgstr ""