Source

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

{% load cms_filters %}
{% load i18n %}



<div id='collector'>

    {% if obj.title %}
        <h2>{{ obj.title }}</h2>
    {% endif %}

    {% for c in obj.contents %}

        <div class='item'>

            {% if c.template_path %}

                {% include c.template_path %}

            {% else %}

                <div id='preview_generic'>

                    <div id='obj_header'>
                        {% if c.title %}
                            <h4>{{ c.title }}</h4>
                        {% endif %}
                    </div>

                    <b>{% trans 'added' %}:</b> <i>{{ c.dt_addition|date:'j F Y' }}</i><br />
                    <b>{% trans 'by' %}:</b> <i>{{ c.owner|default:'unidentified' }}</i><br />

                    <div id='obj_footer'>
                        <div class='read_more'><a href='/view/{{ c.mode_name }}/{{ c.id }}'>{% trans 'read more' %}</a></div>
                    </div>

                </div>

            {% endif %}

        </div>

    {% endfor %}

</div>