Source

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

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



<div id='preview_article'>

    <div id='box_header'>
    </div>

    <div id='box_body'>
        <table>
            <tr>
                <td class='date'>
                    {{ obj.dt_addition|date:'j F Y' }}
                </td>
                <td class='title'>

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

                    {% if o.subtitle %}
                        <h5>{{ o.subtitle }}</h5><br />
                    {% endif %}

                    {% if o.categories_list %}
                        ( {% for cat in o.categories_list %}
                            {% if forloop.last %}
                                {{ cat }}
                            {% else %}
                                {{ cat }},
                            {% endif %}
                        {% endfor %} )<br />
                        <br />
                    {% endif %}
                    
                    <h5>{% trans 'by' %}:</h5> <i>{{ o.owner.username|default:_('unidentified') }}</i><br />
                </td>
            </tr>
        </table>
        <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><br />
                        {% if o.image_caption %}
                        <span class='caption'>
                            {{ o.image_caption }}
                        </span>
                        {% endif %}
                </div>
            {% endif %}

            {% if o.introduction %}
                <div class='introduction'>{{ o.introduction|linebreaks|urlize|slice:':210' }}...</div><br />
            {% endif %}

            {% if o.text %}
                <div class='text'>{{ o.text|safe|slice:':400' }}...</div>
            {% endif %}
        </div>
        
        <div class='read_more'><a href='/view/article/{{ o.id }}'>{% trans 'read more' %}</a></div>
    </div>

    <div id='box_footer'>
    </div>

</div>