From 7975581da28efea6d90727658640006273d978a2 Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Sat, 17 Jan 2026 11:51:10 -0600 Subject: [PATCH] Add Organization Settings link to org dropdown menu - Add Organization Settings link in top-right org menu dropdown - Position it between Switch Org and Admin Panel - Add gear icon for visual clarity - Rename 'Settings' to 'User Settings' with user icon for clarity - Organization Settings link only shows when current_organization is set --- lib/towerops_web/components/layouts.ex | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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"}