{% extends "bootstrap/base.html" %} {% import "bootstrap/utils.html" as utils %} {% import "bootstrap/google.html" as google %} {% set navbar = [ ('home', 'Home'), ('order_bp.orders', 'Orders'), ('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() }} {{ google.uanalytics('UA-25444917-9') }} {% endblock %} {% block navbar %} {% endblock %} {% block content -%} {{ utils.flashed_messages(container=True) }}