diff --git a/lib/towerops_web/components/layouts.ex b/lib/towerops_web/components/layouts.ex index dafdeccf..938802a4 100644 --- a/lib/towerops_web/components/layouts.ex +++ b/lib/towerops_web/components/layouts.ex @@ -196,6 +196,14 @@ defmodule ToweropsWeb.Layouts do > Switch Org + <.link + :if={@current_organization} + navigate={~p"/orgs/#{@current_organization.slug}/settings"} + class="flex items-center gap-2 px-4 py-2 text-sm text-zinc-700 hover:bg-zinc-100 dark:text-zinc-300 dark:hover:bg-zinc-700" + phx-click={JS.hide(to: "#org-menu")} + > + <.icon name="hero-cog-6-tooth" class="w-4 h-4" /> Organization Settings + <%= if @current_scope && @current_scope.user && @current_scope.user.is_superuser do %> <.link navigate={~p"/admin"} @@ -207,10 +215,10 @@ defmodule ToweropsWeb.Layouts do <% end %> <.link navigate={~p"/users/settings"} - class="block px-4 py-2 text-sm text-zinc-700 hover:bg-zinc-100 dark:text-zinc-300 dark:hover:bg-zinc-700" + class="flex items-center gap-2 px-4 py-2 text-sm text-zinc-700 hover:bg-zinc-100 dark:text-zinc-300 dark:hover:bg-zinc-700" phx-click={JS.hide(to: "#org-menu")} > - Settings + <.icon name="hero-user-circle" class="w-4 h-4" /> User Settings <.link href={~p"/users/log-out"}