Source

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

Full commit
{% load cms_filters %}
{% load i18n %}



<div id='preview_article'>

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

    <h5>{% trans 'added' %}:</h5> <i>{{ o.dt_addition|date:'j F Y' }}</i><br />
    <h5>{% trans 'by' %}:</h5> <i>{{ o.owner|default:_('unidentified') }}</i><br />
    <br />

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

        <div class='text'>
            {% if o.introduction %}
                {{ o.introduction|linebreaks|urlize }}
            {% else %}
                {{ o.text|safe }}
            {% endif %}
        </div>
    </div>

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

</div>