{% macro nav_item(item, prefix, request) %} {% if item.item_type == 'resource' %} {% set href = prefix + '/resources/' + item.resource_cls.slug() %} {{ item.label }} {% elif item.item_type == 'link' %} {% set active = (not item.external) and item.url in request.path %} {{ item.label }} {% if item.external %}{% endif %} {% endif %} {% endmacro %} {% macro render_nav(nav, prefix, request) %} {% for item in nav %} {% if item.item_type == 'group' %}
  • {{ item.label }}
  • {% else %}
  • {% endif %} {% endfor %} {% endmacro %} {% block page_title %}{{ title | default('Admin') }}{% endblock %} — {{ brand_name }}
    {{ brand_name }}
    {% if auth_user %}
    {% endif %}
    {% if flash.get('admin_success') %}

    {{ flash.get('admin_success') }}

    {% endif %} {% if flash.get('admin_error') %}

    {{ flash.get('admin_error') }}

    {% endif %}
    {% block content %}{% endblock %}
    {% block scripts %}{% endblock %}