view MoinMoin/themes/basic/templates/show.html @ 2393:0cb9f75fb9ba

Refactored local_panel rendering code, almost everything processed on python side
author sharky93 <rishabhr123@gmail.com>
date Sun, 18 Aug 2013 02:08:46 +0530
parents 2d0c705b6b42
children 4aacb749947b
line wrap: on
line source
{% extends theme("layout.html") %}
{% import "utils.html" as utils %}
{% import theme("itemviews.html") as itemviews with context %}
{% set exists = storage.has_item(item_name) %}

{% set user_actions, item_navigation, item_actions = theme_supp.get_local_panel(item_name) %}

{% block views %}
    {{ itemviews }}
{% endblock %}

{% block content %}

    {% block content_data %}
        {% if data_rendered %}
        <div id="moin-content-data">
            {{ data_rendered }}
        </div>
        {% endif %}
    {% endblock %}

{% endblock %}

{% block user_actions %}
    <div class="list-group-item">User Actions</div>
    {% for endpoint, href, iconcls, label, title in user_actions %}
        <a class="list-group-item" href="{{ href }}" title="{{ title }}" rel="nofollow">
            <span class="icon-stack">
                <i class="{{ iconcls }}"></i>
            </span> 
            {{ label }}
        </a>
    {% endfor %}
{% endblock %}

{% block item_navigation %}
    <div class="list-group-item">Item Navigation</div>
    {% for endpoint, href, iconcls, label, title in item_navigation %}
        <a class="list-group-item" href="{{ href }}" title="{{ title }}" rel="nofollow">
        <span class="icon-stack">    
            <i class="{{ iconcls }}"></i>
        </span>
            {{ label }}
        </a>
    {% endfor %}
{% endblock %}

{% block item_actions %}
    <div class="list-group-item">Item Actions</div>
    {% for endpoint, href, iconcls, label, title in item_actions %}
        <a class="list-group-item" href="{{ href }}" title="{{ title }}" rel="nofollow">
        <span class="icon-stack">
            <i class="{{ iconcls }}"></i>
        </span>
            {{ label }}
        </a>
    {% endfor %}
{% endblock %}

{% block local_panel %}
        
        <!-- user, site, item actions -->
    <div class="list-group">
        {{ self.user_actions() }}

        {{ self.item_navigation() }}

        {{ self.item_actions() }}
    </div>

{% endblock %}