diff --git a/lib/music_library_web/components/core_components.ex b/lib/music_library_web/components/core_components.ex index db11e5f6..de2f3ae3 100644 --- a/lib/music_library_web/components/core_components.ex +++ b/lib/music_library_web/components/core_components.ex @@ -22,6 +22,10 @@ defmodule MusicLibraryWeb.CoreComponents do defdelegate badge(assigns), to: Fluxon.Components.Badge defdelegate button(assigns), to: Fluxon.Components.Button defdelegate date_time_picker(assigns), to: Fluxon.Components.DatePicker + defdelegate dropdown(assigns), to: Fluxon.Components.Dropdown + defdelegate dropdown_button(assigns), to: Fluxon.Components.Dropdown + defdelegate dropdown_link(assigns), to: Fluxon.Components.Dropdown + defdelegate dropdown_separator(assigns), to: Fluxon.Components.Dropdown defdelegate input(assigns), to: Fluxon.Components.Input defdelegate label(assigns), to: Fluxon.Components.Form defdelegate loading(assigns), to: Fluxon.Components.Loading diff --git a/lib/music_library_web/components/layouts/app.html.heex b/lib/music_library_web/components/layouts/app.html.heex index 43403864..7f2a4338 100644 --- a/lib/music_library_web/components/layouts/app.html.heex +++ b/lib/music_library_web/components/layouts/app.html.heex @@ -39,42 +39,45 @@ -
- - <.icon name="hero-chart-bar" class="h-4 w-4 mr-2" aria-hidden="true" data-slot="icon" /> - {gettext("Live Dashboard")} - - - <.icon - name="hero-exclamation-circle" - class="h-4 w-4 mr-2" - aria-hidden="true" - data-slot="icon" - /> - {gettext("Errors")} - - - <.icon name="hero-cog" class="h-4 w-4 mr-2" aria-hidden="true" data-slot="icon" /> - {gettext("Oban")} - - - <.icon - name="hero-archive-box-arrow-down" - class="h-4 w-4 mr-2" - aria-hidden="true" - data-slot="icon" - /> - {gettext("Backup")} - - - <.icon - name="hero-arrow-left-start-on-rectangle" - class="h-4 w-4 mr-2" - aria-hidden="true" - data-slot="icon" - /> - {gettext("Logout")} - +
+ <.dropdown label={gettext("More")}> + <.dropdown_link href={~p"/dev/dashboard"}> + <.icon name="hero-chart-bar" class="h-4 w-4 mr-2" aria-hidden="true" data-slot="icon" /> + {gettext("Live Dashboard")} + + <.dropdown_link href={~p"/dev/errors"}> + <.icon + name="hero-exclamation-circle" + class="h-4 w-4 mr-2" + aria-hidden="true" + data-slot="icon" + /> + {gettext("Errors")} + + <.dropdown_link href={~p"/dev/oban"}> + <.icon name="hero-cog" class="h-4 w-4 mr-2" aria-hidden="true" data-slot="icon" /> + {gettext("Oban")} + + <.dropdown_link href={~p"/backup"}> + <.icon + name="hero-archive-box-arrow-down" + class="h-4 w-4 mr-2" + aria-hidden="true" + data-slot="icon" + /> + {gettext("Backup")} + + <.dropdown_separator /> + <.dropdown_link href={~p"/login"}> + <.icon + name="hero-arrow-left-start-on-rectangle" + class="h-4 w-4 mr-2" + aria-hidden="true" + data-slot="icon" + /> + {gettext("Logout")} + +
diff --git a/priv/gettext/default.pot b/priv/gettext/default.pot index cd1af711..8bcee7cf 100644 --- a/priv/gettext/default.pot +++ b/priv/gettext/default.pot @@ -815,3 +815,8 @@ msgstr "" #, elixir-autogen, elixir-format msgid "Warning!" msgstr "" + +#: lib/music_library_web/components/layouts/app.html.heex +#, elixir-autogen, elixir-format +msgid "More" +msgstr "" diff --git a/priv/gettext/en/LC_MESSAGES/default.po b/priv/gettext/en/LC_MESSAGES/default.po index c7d93c94..ea2664ea 100644 --- a/priv/gettext/en/LC_MESSAGES/default.po +++ b/priv/gettext/en/LC_MESSAGES/default.po @@ -815,3 +815,8 @@ msgstr "" #, elixir-autogen, elixir-format msgid "Warning!" msgstr "" + +#: lib/music_library_web/components/layouts/app.html.heex +#, elixir-autogen, elixir-format +msgid "More" +msgstr ""