view MoinMoin/themes/basic/templates/itemviews.html @ 2395:e0a4950b9658

Refactored tab views code, major part on python side
author sharky93 <rishabhr123@gmail.com>
date Sun, 18 Aug 2013 03:04:16 +0530
parents 9bf41329f031
children 8b1d94b7fb98
line wrap: on
line source
{% set exists = storage.has_item(item_name) %}
{% set current_endpoint = request.endpoint %}

{% from theme("layout.html") import icon with context %}

{% set navtabs = theme_supp.get_action_tabs(item_name, current_endpoint) %}

{% block views %}

    <ul class="moin-nav nav-tabs moin-shadow">
      {% for endpoint, href, maincls, iconcls, title, label in navtabs %}
        <li class={% if maincls %} "{{ maincls }}" {% endif %}>
            <a href="{{ href }}" title="{{ title }}" rel="nofollow">
              <span class="{{ iconcls }}"></span>
                {{ label }}
            </a>
        </li>
      {% endfor %}

    </ul>
{% endblock %}