Source

django-swingcms / swingcms / agenda / templates / agenda / agenda_as_list.html

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



<div id='agenda_list'>

    <table>

        {% for e in agenda_as_list %}

            <tr>

                <td>

                    <span class='date'>{{ e.dt_start|date:'l j F' }} </span> 
                    <span class='title'>
                        {% if e.title %}
                            {{ e.title }}
                        {% else %}
                            {{ e.name }}
                        {% endif %}
                    </span><br />
                    <br />
                    {{ e.description|safe }}<br />
                    <br />
                    <b>{% trans 'from' %}:</b> {{ e.dt_start|date:'j F Y' }} {% trans 'at' %} {{ e.dt_start|time:'H:i' }}<br />
                    <b>{% trans 'to' %}:</b> {{ e.dt_stop|date:'j F Y' }} {% trans 'at' %} {{ e.dt_stop|time:'H:i' }}<br />
                    {% if e.location %}
                        <b>{% trans 'location' %}:</b> {{ e.location }}<br />
                    {% endif %}
                    {% if e.map %}
                        <b>{% trans 'map' %}:</b> <a href='{{ e.map }}'>{% trans 'click here' %}</a><br />
                    {% endif %}
                    {% if e.referent_name or e.referent_cell or e.referent_email %}
                        <b>{% trans 'referent' %}:</b> {% if e.referent_name %}
                                                           {{ e.referent_name }}
                                                       {% endif %} 
                                                       {% if e.referent_email %}
                                                           {{ e.referent_email }}
                                                       {% endif %} 
                                                       {% if e.referent_cell %}
                                                           {{ e.referent_cell }}
                                                       {% endif %}
                        <br />
                    {% endif %}
                    {% if e.link %}
                        <a href='{{ e.link }}'>link</a><br />
                    {% endif %}
                    <br />
                    <!-- <span class='read_more'><a class='read_more' href='/view/event/{{ e.id }}' title='{{ e.description }}''>{% trans 'read more' %}</a></span> -->

                </td>      

            </tr>

        {% endfor %}

    </table>

</div>