view MoinMoin/templates/sitemap.html @ 2851:5a49eeb1f307

add spaces to jinja2 expressions, add tests for missing spaces to coding_std.py
author RogerHaase <haaserd@gmail.com>
date Wed, 19 Nov 2014 11:51:19 -0700
parents f9bccf2e3d1e
children 54face4c8ae9
line wrap: on
line source
{% extends theme("show.html") %}

{% set title = _("SiteMap of '%(item_name)s'", item_name=item_name) %}

{% macro showtree(sitemap) %}
    <ul>
        {% for entry in sitemap recursive %}
            {% if isinstance(entry, list) %}
                {% if loop.first %}
                    {{ loop(entry) }}
                {% else %}
                    <li style="list-style-type: none;">
                        <ul class="moin-link-list">
                            {{ loop(entry) }}
                        </ul>
                    </li>
                {% endif %}
            {% else %}
                <li>
                    <a href="{{ url_for('frontend.sitemap', item_name=entry) }}">
                        <span class="fa fa-sitemap"></span>
                    </a>
                    <a class="moin-fqname" href="{{ url_for('frontend.show_item', item_name=entry) }}" data-fqname="{{ entry }}">
                        {{ entry.value }}
                    </a>
                </li>
            {% endif %}
        {% endfor %}
    </ul>
{% endmacro %}

{% block content %}
    <h1>{{ title }}</h1>
    <h2>{{ _('Outgoing') }}</h2>
    {{ showtree(sitemap) }}
    <h2>{{ _('Incoming') }}</h2>
    {{ showtree(backrefs) }}
{% endblock %}