Source

django-swingcms / swingcms / cms / templates / cms / obj.html

Full commit
{% load i18n %}



<div id="obj">


    {% if obj %}

        {% if not user.is_anonymous and obj.perms %}

            {% include "cms/action_buttons.html" %}

        {% endif %}

        {% if obj.template_path %}

            {% include obj.template_path %}

        {% else %}

            {% if obj_template_path %}
                {% include obj_template_path %}
            {% endif %}

        {% endif %}

    {% else %}

        {% if obj_template_path %}

            {% include obj_template_path %}

        {% else %}

        {% endif %}

    {% endif %}


    {% if not user.is_anonymous and obj.history %}

        <div id="history">
            <div class="history_icon">
                <a href="javascript:switch_element('history_box','block');switch_icons('history_icon');">
                    <img src="{{ STATIC_URL }}cms/icons/plus.gif" alt="plus">
                </a>
                <h5>History</h5><br />
            </div>
            <br />

            <div class="history_box" style="display:none;">

                {% for username, timestamp, event in obj.history %}

                    - {{ timestamp }} {{ username }}: {{ event }}<br />

                {% endfor %}

            </div>

        </div>

    {% endif %}


</div>