From d65981ef7e65a6a9689ce2b6c90b373b3058bc6b Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Tue, 15 Jul 2025 16:18:41 +0200 Subject: [PATCH] Reorganize navbar with Trip and Conference dropdowns MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Move trip-related pages (Future trips, Past trips, Trip statistics) to a "Trips" dropdown - Move conference-related pages (Conferences, Past conferences) to a "Conferences" dropdown - Position both dropdowns between Calendar and Travel in the navbar - Maintain active state highlighting for dropdown items and parent dropdowns 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- templates/navbar.html | 61 ++++++++++++++++++++++++++++++++++++++----- 1 file changed, 54 insertions(+), 7 deletions(-) diff --git a/templates/navbar.html b/templates/navbar.html index eed9c1f..f44088c 100644 --- a/templates/navbar.html +++ b/templates/navbar.html @@ -1,13 +1,12 @@ {% macro navbar() %} -{% set pages = [ +{% set pages_before_dropdowns = [ {"endpoint": "index", "label": "Home" }, {"endpoint": "recent", "label": "Recent" }, {"endpoint": "calendar_page", "label": "Calendar" }, - {"endpoint": "trip_future_list", "label": "Future trips" }, - {"endpoint": "trip_past_list", "label": "Past trips" }, - {"endpoint": "conference_list", "label": "Conferences" }, - {"endpoint": "past_conference_list", "label": "Past conferences" }, +] %} + +{% set pages_after_dropdowns = [ {"endpoint": "travel_list", "label": "Travel" }, {"endpoint": "accommodation_list", "label": "Accommodation" }, {"endpoint": "gaps_page", "label": "Gaps" }, @@ -17,7 +16,18 @@ {"endpoint": "schengen_report", "label": "Schengen" }, ] + ([{"endpoint": "birthday_list", "label": "Birthdays" }] if g.user.is_authenticated else []) - %} +%} + +{% set trip_pages = [ + {"endpoint": "trip_future_list", "label": "Future trips" }, + {"endpoint": "trip_past_list", "label": "Past trips" }, + {"endpoint": "trip_stats", "label": "Trip statistics" }, +] %} + +{% set conference_pages = [ + {"endpoint": "conference_list", "label": "Conferences" }, + {"endpoint": "past_conference_list", "label": "Past conferences" }, +] %}