view MoinMoin/templates/sitemap.html @ 2907:54face4c8ae9 nb

fixes #469 removed toggle text, used title attribute
author Vipul Sharma <vipul.sharma20@gmail.com>
date Sun, 01 Mar 2015 18:57:54 +0530
parents 5a49eeb1f307
children
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) }}">
                        {{ entry.value }}
                    </a>
                </li>
            {% endif %}
        {% endfor %}
    </ul>
{% endmacro %}

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