{% extends "bootstrap/base.html" %} {% import "bootstrap/utils.html" as utils %} {% set navbar = [ ('home', 'Home'), ('order_bp.orders', 'Orders'), ('locations', 'Locations'), ('map', 'Map'), ('about', 'About'), ('stats', 'Stats'), ] -%} {% if not current_user.is_anonymous() and current_user.is_admin() -%} {% set navbar = navbar + [('admin.index', 'Admin')] -%} {% endif -%} {% set active_page = active_page|default('index') -%} {% block title %} Haldis - {{ active_page|capitalize }} {% endblock %} {% block styles %} {{ super() }} {% endblock %} {% block scripts %} {{ super() }} {% endblock %} {% block navbar %} {% endblock %} {% block content -%} {{ utils.flashed_messages(container=True) }}