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