view MoinMoin/themes/basic/templates/show.html @ 2455:780b7c4c49e2

fixes rendering of User Actions heading even with no one logged in
author sharky93 <rishabhr123@gmail.com>
date Sun, 08 Sep 2013 22:35:13 +0530
parents 303fed8f1f56
children 059b439bea9e
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) %}

{% 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 %}
    {{ local_panel_main(user_actions) }}
{% endblock %}

{% block item_actions %}
    {{ local_panel_main(item_actions) }}
{% endblock %}

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

        <div class="list-group-item">View Options</div>
        <button type="button" 
                class="btn btn-default moin-user-action-special moin-toggle-comments-button" 
                data-toggle="button"
                title="Show Comments">
            <span class="pull-left">
                <i class="icon-comment icon-fixed-width"></i>
                Comments 
            </span>
        </button>
        <button type="button" 
                class="btn btn-default moin-user-action-special moin-transclusions-button" 
                data-toggle="button"
                title="Show Transclusions">
            <span class="pull-left">
                <i class="icon-edit icon-fixed-width"></i>
                Transclusions
            </span>
        </button>
                    
        <div class="list-group-item"> {{ _("Item Actions") }} </div>
        {{ self.item_actions() }}
    </div>

{% endblock %}