Source

django-basic-events / events / templates / events / _list_view.html

Full commit
{% if perms.events.change_event %}
    <a class='admin edit' href='{% url admin:events_event_changelist %}'>(Edit)</a>
{% endif %}
{% if current_category %}: {{ current_category }}{% endif %}</h2>
<ul class='events'>
    {% for event in events %}
        <li>
            <h2><a href='{% url view_event event.begin_date.year,event.begin_date.month,event.slug %}'>{{ event }}</a></h2>
                <p class='date'>
                    {{ event.display_date }}{% if event.show_date %}.{% endif %}
                </p>
            <div class='description'>{{ event.description|safe|truncatewords_html:40 }}</div>
        </li>
    {% endfor %}
</ul>