{% macro menu() %} {% for item in admin_view.admin.menu() %} {% if item.is_category() %} {% set children = item.get_children() %} {% if children %} {% if item.is_active(admin_view) %} {% endif %} {% else %} {% if item.is_accessible() and item.is_visible() %} {% if item.is_active(admin_view) %}
  • {% else %}
  • {% endif %} {{ item.name }}
  • {% endif %} {% endif %} {% endfor %} {% endmacro %} {% macro menu_links() %} {% for item in admin_view.admin.menu_links() %} {% if item.is_accessible() and item.is_visible() %}
  • {{ item.name }}
  • {% endif %} {% endfor %} {% endmacro %} {% macro messages() %} {% with messages = get_flashed_messages(with_categories=True) %} {% if messages %} {% for category, m in messages %} {% if category %}
    {% else %}
    {% endif %} x {{ m }}
    {% endfor %} {% endif %} {% endwith %} {% endmacro %}