Source

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

Fabio Michelini 7dc8c13 

























































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



<div id='article'>

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

    {% if obj.subtitle %}
        <h3>{{ obj.subtitle }}</h3><br />
    {% endif %}

    {% if obj.categories_list %}
        ( {% for cat in obj.categories_list %}
	        {% if forloop.last %}
	            {{ cat }}
	        {% else %}
	            {{ cat }},
	        {% endif %}
        {% endfor %} )<br />
        <br />
    {% endif %}

    <b>{% trans 'added' %}:</b> <i>{{ obj.dt_addition|date:'j F Y' }}</i>
    <b>{% trans 'at' %}</b> <i>{{ obj.dt_addition|time:'H:i' }}</i><br />
    <b>{% trans 'by' %}:</b> <i>{{ obj.owner.username|default:_('unidentified') }}</i><br />

    {% if obj.introduction %}
        <br />
        <i>{{ obj.introduction|linebreaks|urlize }}</i><br />
    {% endif %}

    <br />
    <div>
        {% if obj.image_thumb %}
            <div class='thumb'>
                <a class='fancybox' href='{{ obj.image.url }}'><img src='{{ obj.image_thumb.url }}'  alt='{{ obj.name }}'/></a><br/>
                    {% if obj.image_caption %}
                        <span class='caption'>
                            {{ obj.image_caption }}
                        </span>
                    {% endif %}
            </div>
        {% endif %}

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

    <div id='article_footer'>
    <br />
    ( {% trans 'size' %}: <i>{{ obj.size|filesizeformat }}</i> )<br />
    </div>

</div>