Source

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

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



<div id='event'>

    {% if obj.title %}
        <h2>{{ obj.title }}</h2><br />
        <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> <span class="date">{{ obj.dt_addition|date:'j F Y' }}</span>
    <b>{% trans 'at' %}</b> <span class="date">{{ obj.dt_addition|time:'H:i' }}</span><br />
    <b>{% trans 'by' %}:</b> <i>{{ obj.owner.username|default:_('unidentified') }}</i><br />

    <div class='text'>

        <b>{% trans 'from' %}</b>: <span class="date">{{ obj.dt_start|date:'j F Y' }}</span> <b>{% trans 'at' %}</b> <span class="date">{{ obj.dt_start|time:'H:i' }}</span><br />
        <b>{% trans 'to' %}</b>: <span class="date">{{ obj.dt_stop|date:'j F Y' }}</span> <b>{% trans 'at' %}</b> <span class="date">{{ obj.dt_stop|time:'H:i' }}</span><br />

        <b>{% trans 'location' %}:</b> {{ obj.location }}<br />
        {% if obj.map %}
            <b>{% trans 'map' %}</b>: <a href='{{ obj.map }}'>{% trans 'click here' %}</a><br />
        {% endif %}

        {% if obj.referent_name %}
            <b>{% trans 'referent name' %}</b>: {{ obj.referent_name }}<br />
        {% endif %}

        {% if obj.referent_email %}
            <b>{% trans 'referent email' %}</b>: {{ obj.referent_email }}<br />
        {% endif %}

        {% if obj.referent_cell %}
            <b>{% trans 'referent cell' %}</b>: {{ obj.referent_cell }}<br />
        {% endif %}
        <br />

        {{ obj.text|safe }}<br />

    </div>

</div>