{% load tag_extra %}
{% load utils_extra %}
<div class="slim-description">
  <div class="date-heure">{% include "agenda_culturel/ephemeris-inc.html" with event=event filter=filter %}</div>
  <div class="texte-principal">
    <h3>
      <a href="{{ pe.get_absolute_url }}">{{ pe.title }}</a>
    </h3>
    <p>
      {% if pe.exact_location %}
        {% picto_from_name "map-pin" %}
        {{ pe.exact_location.name }}, {{ pe.exact_location.city }}
      </p>
    {% else %}
      {% if pe.location %}
        {% picto_from_name "map-pin" %} {{ pe.location }}
      {% endif %}
    {% endif %}
    <div class="description">
      {{ event.description |truncatewords:15 }}
      <p class="tag-list">
        {% for tag in event.sorted_tags %}
          <a href="{% url 'view_tag' tag|prepare_tag %}"
             role="button"
             class="small-cat">{{ tag|tw_highlight }}</a>
        {% endfor %}
      </p>
    </div>
  </div>
  {% if event.image or event.local_image %}
    <div class="illustration">
      <img src="{% if pe.local_image %}{{ event.local_image.url }}{% else %}{{ event.image }}{% endif %}"
           alt="{{ event.image_alt }}" />
    </div>
  {% endif %}
</div>
