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" }, +] %}