From d28aa5af4bff5a110cfa00f18c942dad727da919 Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Sun, 22 Feb 2026 18:40:18 -0500 Subject: [PATCH] refactor(templates): extract shared header from admin pages - Replace inline nav code with @Header component in admin.templ - Replace inline nav code with @Header component in admin_library.templ - DRY up navigation, theme switcher, and user menu across admin pages --- templates/admin.templ | 17 +---------------- templates/admin_library.templ | 17 +---------------- 2 files changed, 2 insertions(+), 32 deletions(-) diff --git a/templates/admin.templ b/templates/admin.templ index 3f22ef7..8a675c2 100644 --- a/templates/admin.templ +++ b/templates/admin.templ @@ -11,22 +11,7 @@ templ Admin(user User) { - + @Header(user, "/admin")