{% if eventsList|length %}
    <div class="bloc-type-2 gray-bg bloc-type-2-detail">
        <h3>Sur ce thème</h3>
        <ul class="menu-type-2">
            {% for locationId,event in eventsList %}
                {#{% if currentDetailLocationId != event.contentInfo.mainLocationId %}#}
                    {% set url = path( 'ez_urlalias', {'locationId': locationId} ) %}
                    <li>
                        <a href="{{ url }}">
                            {{ ez_render_field( event, "titre" ) }}
                            <div>
                                <time datetime="{{ ez_field_value(event, "date_debut")|localizeddate('none', 'none', app.request.locale, null, "dd/MM/yyyy") }}">
                                    {% if event.fields.date_debut is defined and not ez_is_field_empty( event, "date_debut" )
                                    and event.fields.date_fin is defined and not ez_is_field_empty( event, "date_fin" ) and event.getFieldValue('date_debut').date != event.getFieldValue('date_fin').date  %}
                                        Du
                                    {% endif %}
                                    {% if event.fields.date_debut is defined and not ez_is_field_empty( event, "date_debut" ) %}
                                    {{ ez_field_value(event, "date_debut")|localizeddate('none', 'none', app.request.locale, null, "dd/MM/yyyy") }}</time>
                                {% if event.fields.date_fin is defined and not ez_is_field_empty( event, "date_fin" )  and event.getFieldValue('date_debut').date != event.getFieldValue('date_fin').date %}
                                    <time datetime="{{ ez_field_value(event, "date_fin")|localizeddate('none', 'none', app.request.locale, null, "dd/MM/yyyy") }}">
                                        au {{ ez_field_value(event, "date_fin")|localizeddate('none', 'none', app.request.locale, null, "dd/MM/yyyy") }}
                                    </time>
                                {% endif %}
                                {% endif %}
                            </div>
                        </a>
                    </li>
                {#{% endif %}#}
            {% endfor %}
        </ul>

        <a href="{{ path( 'ez_urlalias', {'locationId': locationId, 'tags': tags } ) }}" class="voir-plus">> Voir les autres événements</a>
    </div>
{% endif %}