Source

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

Fabio Michelini 7dc8c13 




















































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



<div id='folder_thumbs'>

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

    {% if obj.introduction %}
        {{ obj.introduction|safe }}<br />
        <br />
    {% endif %}

    {% for o in obj.contents %}

        {% if o.model_name == 'image' %}

            <div class='thumb'>

                <a class='fancybox' title='{{ o.title }}'  href='{{ o.image.url }}'><img src="{{ o.image_thumb.url }}" alt='{{ o.name }}'></a><br />

                <h6>{{ o.name }}</h6>
                <a href='/view/image/{{ o.id }}'>{% trans 'view obj' %}</a>

            </div>

        {% endif %}

        {% if o.model_name == 'folder' %}

            <div class='thumb'>

                <a href='/view/{{ o.model_name }}/{{ o.id }}'><img src='{{ STATIC_URL }}icons/folder.png' alt='{{ o.name }}'></a><br />
                {{ o.title }}

            </div>

        {% endif %}

    {% endfor %}<br />

    <div class='notes'>
        <br />
        <br />
        {% if obj.notes %}
            {{ obj.notes|safe }}<br />
        {% endif %}
    </div>

</div>