{% extends theme("base.html") %} {% import theme("snippets.html") as snippets %} {% set logo = snippets.logo() %} {% set footer_logos = snippets.creditlogos() %} {% set credits = snippets.credits() %} {% set user_actions, item_navigation, item_actions = theme_supp.get_local_panel(fqname) %} {% set basic_scripts = snippets.add_scripts() %} {% set current_url = request.url %} {% set current_path = request.path %} {% set current_url_showview = url_for_item(endpoint='frontend.show_item', item_name=item_name) %} {% set login_url = theme_supp.login_url() %} {# Helper macro to generate the local panel #} {% macro local_panel_main(panelname) -%} {% for endpoint, href, iconcls, label, title, exists in panelname %} {# iconcls should be defined, defined for all local_panel_items, see themes/__init.py #} {{ hyperlink(href, title, exists, label, iconcls + " icon-fixed-width", "list-group-item") }} {% endfor %} {% endmacro %} {# Helper macro to generate links #} {% macro hyperlink(href, title, exists, label, iconcls, mainclass) -%} {% if iconcls %} {% endif %} {% if href == login_url %} {{label }} {% else %} {% endif %} {% endmacro %} {# Helper macro to generate a search form #} {% macro make_search_form(klass, clas) %}
{% endmacro %} {% block head_meta %} {{ super() }} {% endblock %} {% block layout %}
{% set navibar_items = theme_supp.navibar(item_name) %} {% set quicklinks = 'false' %} {% if search_form %} {{ make_search_form("hidden-lg hidden-md hidden-sm", "moin-sidebar-form") }} {% endif %} {% if navibar_items %}
{{ _("Site Navigation") }}
{% for cls, url, text, title in navibar_items if cls != 'userlink' %} {{ text|shorten_item_name }} {% endfor %} {% if item_navigation %}
{{ _("Supplementation") }}
{{ local_panel_main(item_navigation) }} {% endif %} {% endif %} {% for cls, url, text, title in navibar_items if cls == 'userlink' %} {% if loop.first %}
Quick Links
{% endif %} {% endfor %} {% if self.local_panel %} {{ self.local_panel() }} {% endif %}
{# moin-sidebar-panels #}
{# moin-sidebar #}
{# navbar moin-navbar-inverse #} {# moin-breadcrumb #}
{# id -> moin-flash is used to add special alerts for ex. for changes to User Settings via JS, see common.js #}
{% for category, msg in get_flashed_messages(with_categories=true) %}
{{ msg }}
{% endfor %}
{% block views %} {% endblock %} {% set content_id = self.local_panel and 'moin-content' or 'moin-content-no-panel' %}
{% block content %} {# All content templates should implement this block. #} {% endblock %}
{% block footer %} {% endblock %}
{# parent of header, breadcrumbs, content, footer #}
{% endblock %} {% block body_scripts %} {{ super() }} {{ basic_scripts }} {% endblock %}