From 5fdb0e81fd2da67c4e687d008e9aaf79041f75c8 Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Sun, 4 Jan 2026 11:34:21 -0600 Subject: [PATCH] Add main menubar to /orgs page - Change /orgs to use Layouts.authenticated instead of Layouts.app - Update authenticated layout to show user menu without organization - Menu button shows org name when in org, 'Menu' on org list page - Always show Settings and Log out options --- lib/towerops_web/components/layouts.ex | 5 +++-- lib/towerops_web/live/org_live/index.html.heex | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/towerops_web/components/layouts.ex b/lib/towerops_web/components/layouts.ex index 95f31c15..290ae145 100644 --- a/lib/towerops_web/components/layouts.ex +++ b/lib/towerops_web/components/layouts.ex @@ -108,14 +108,14 @@ defmodule ToweropsWeb.Layouts do -
+
@@ -126,6 +126,7 @@ defmodule ToweropsWeb.Layouts do >
<.link + :if={@current_organization} navigate={~p"/orgs"} class="block 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")} diff --git a/lib/towerops_web/live/org_live/index.html.heex b/lib/towerops_web/live/org_live/index.html.heex index 7c84c468..a951f462 100644 --- a/lib/towerops_web/live/org_live/index.html.heex +++ b/lib/towerops_web/live/org_live/index.html.heex @@ -1,4 +1,4 @@ - + <.header> {@page_title} <:actions> @@ -35,4 +35,4 @@
- +