view MoinMoin/templates/index.html @ 483:4307261bac75

item index view modified
author Akash Sinha <akash2607@gmail.com>
date Fri, 08 Jul 2011 17:15:53 +0530
parents 7a6b116afa20
children 17132086b9d6
line wrap: on
line source
{% extends theme("show.html") %}

{% block content %}
    <h1>{{ _("Index of subitems of '%(item_name)s'", item_name=item_name) }}</h1>
    <div class="moin-index-path">
    <a href="{{ url_for('frontend.global_index') }}" title="{{ _("Global Index") }}">{{ ("..") }}</a>
    <span class="moin-path-separator">{{ ("/") }}</span>
    {% for i in range(0, item_names|count) %}
        {% set fullname = item_names[:i+1]|join('/') %}
        {% set relname = item_names[i] %}
        <a href="{{ url_for('frontend.index', item_name=fullname) }}" title="{{ relname }}">{{ relname }}</a>
        <span class="moin-path-separator">{{ ("/") }}</span>
    {% endfor %}
    </div>
    {% if index %}
    <div id="moin-item-index">
        {% set maxchars = 20 %}
        {% for fullname, relname, contenttype, hassubitem in index %}
            <div>
                <a href="{{ url_for('.show_item', item_name=fullname) }}" 
                   class="{{ contenttype|contenttype_to_class }}"
                   title="{{ relname }}">
                   {{ relname|truncate(maxchars, true, '..') }}
                </a>
                {% if hassubitem %}
                    <a href="{{ url_for('frontend.index', item_name=fullname) }}" 
                       title="{{ _("More") }}"
                       class="moin-more-index">
                </a>
                {% endif %}
            </div>
        {% endfor %}
    </div>
    <div class="moin-clr"></div>
    {% endif %}
{% endblock %}