{% macro navbar() %} {% set pages = [ {"endpoint": "index", "label": "Home" }, {"endpoint": "trip_future_list", "label": "Future trip" }, {"endpoint": "trip_past_list", "label": "Past trip" }, {"endpoint": "conference_list", "label": "Conference" }, {"endpoint": "travel_list", "label": "Travel" }, {"endpoint": "accommodation_list", "label": "Accommodation" }, {"endpoint": "gaps_page", "label": "Gap" }, {"endpoint": "weekends", "label": "Weekend" }, {"endpoint": "launch_list", "label": "Space launch" }, {"endpoint": "holiday_list", "label": "Holiday" }, ] + ([{"endpoint": "birthday_list", "label": "Birthdays" }] if g.user.is_authenticated else []) %} {% endmacro %}