Newer
Older
pre-www / src / layout / partials / tease-event.twig
{% 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">
        {{event.date.start|date('D')}}<br>{{event.date.start|date('d.m.Y')}} 
    </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>
        <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>