{# Date (optional) #} {% if config.infobar.displayDateField %}
{{ element.dateToDisplay|date('ddd') }} {{ element.dateToDisplay|date('dddd') }} {{ element.dateToDisplay.date() }} {{ element.dateToDisplay|date('MMM') }} {{ element.dateToDisplay|date('MMMM') }} {{ element.dateToDisplay|date('YYYY') }}
{% endif %}
{# Header Title #}
{# Icon #} {# Close Button #} {# Name #}

{{ element.name|safe }}

{% if element.isDeleted %}
{{ 'rejected.or.deleted.element' | i18n }}{% endif %} {# Distance #} {% if showDistance %} ~ {{ element.distance }} km {% endif %} {# Short address (for list mode) #} {% set address = element.originalAddress %} {% if address %} {# #} {% if address.postalCode %}{{ address.postalCode }}{% endif %} {% if address.addressLocality %} {{ address.addressLocality }}{% endif %} {% endif %}
{# Header More #}
{{ customHeader|safe }}
{# Categories litteral #} {% set lastIconToDisplay = '' %} {% for optionValue in currOptionsValues %} {% set option = optionValue.option %} {% set isDisabled = '' if optionValue.isFilledByFilters else 'disabled' %} {% set icon = option.icon %} {% set parentIcon = option.getOwner().getOwner().icon if option.getOwner() else '' %} {% set iconToDisplay = parentIcon if parentIcon and not option.useIconForMarker else icon %} {% set sameIcon = iconToDisplay == lastIconToDisplay %} {% if iconToDisplay and not sameIcon %} {% endif %} {% set lastIconToDisplay = iconToDisplay %} {{ option.nameShort }} {% endfor %} {% if not currOptionsValues|length %} {{ mainOptionToDisplay.option.name }} {% endif %} {# Toggle Details Buttons #}