{% if event.is_canceled %}
    {% set is_canceled = true %}
{% endif %}

<div class="tease-event {% if is_canceled %}tease-event--canceled{% endif %}">
    <div class="tease-event__date">
        <span>{{event.date.start|date('D')}}</span><span>{{event.date.start|date('d.m')}}</span>
    </div>
    <div class="tease-event__info">
        <div>
            {% if event.allday %}<span>Tutto il giorno</span>{% endif %}
            <span>{% if is_canceled %}<span>Cancellato</span>{% endif %}{{event.date.start|date('h:s')}}</span>
        </div>
        <div class="tease-event__location">{{event.place}}</div>
    </div>
    <div class="tease-event__content">
        <a href="{{event.url}}" class="tease-event__title">{{event.title}}</a>
        {% if event.subtitle %}
            <p class="tease-event__subtitle">{{event.subtitle}}</p>
        {% endif %}
        <p class="tease-event__excerpt">{{event.excerpt}}</p>
    </div>
</div>
