91 lines
3.3 KiB
HTML
91 lines
3.3 KiB
HTML
{% load static %}
|
|
{% load cat_extra %}
|
|
{% load utils_extra %}
|
|
{% load event_extra %}
|
|
{% load tag_extra %}
|
|
|
|
<article>
|
|
{% if event|can_show_start_time:day %}
|
|
{% if event.start_time %}
|
|
<article class='ephemeris-hour'>
|
|
<span class="large">{{ event.start_time }}</span>
|
|
</article>
|
|
{% endif %}
|
|
{% endif %}
|
|
{% if event|can_show_end_time:day %}
|
|
{% if event.end_time %}
|
|
<article class='ephemeris-hour'>
|
|
jusqu'à <span class="large">{{ event.end_time }}</span>
|
|
</article>
|
|
{% endif %}
|
|
{% endif %}
|
|
|
|
{{ event.category | small_cat_recurrent:event.has_recurrences }}
|
|
{% if event.location %}<hgroup>{% endif %}
|
|
<h3>
|
|
{{ event|picto_status }}
|
|
<a href="{{ event.get_absolute_url }}">{{ event.title }}</a></h3>
|
|
{% if event.location %}
|
|
<h4>
|
|
{% picto_from_name "map-pin" %}
|
|
{{ event.location }}
|
|
</h4>
|
|
</hgroup>
|
|
{% endif %}
|
|
|
|
{% if event|need_complete_display:True %}<p>
|
|
{% picto_from_name "calendar" %}
|
|
|
|
<em>{% if event.end_day and event.end_day != event.start_day %}Cet événement dure du {% else %}Cet événement a lieu le{% endif %}
|
|
{% include "agenda_culturel/date-times-inc.html" with event=event %}
|
|
</em></p>
|
|
{% endif %}
|
|
|
|
{% if event.image or event.local_image %}
|
|
<article class='illustration-small'>
|
|
<img src="{% if event.local_image %}{{ event.local_image.url }}{% else %}{{ event.image }}{% endif %}" alt="{{ event.image_alt }}" />
|
|
</article>
|
|
{% endif %}
|
|
|
|
<p>{{ event.description |linebreaks }}</p>
|
|
|
|
|
|
<footer class="infos-and-buttons">
|
|
<div class="infos">
|
|
<p>
|
|
{% for tag in event.tags %}
|
|
<a href="{% url 'view_tag' tag %}" role="button" class="small-cat">{{ tag }}</a>
|
|
{% endfor %}
|
|
</p>
|
|
|
|
{% if event.reference_urls %}
|
|
<p>Source{{ event.reference_urls|pluralize }} :
|
|
|
|
{% for eurl in event.reference_urls %}
|
|
<a href="{{ eurl }}">{{ eurl|hostname }}</a>{% if not forloop.last %}, {% endif %}
|
|
{% endfor %}
|
|
</p>
|
|
{% else %}
|
|
<p><em>Cet événement est disponible uniquement sur les nuits énimagmatiques.</em></p>
|
|
{% endif %}
|
|
{% if event.has_recurrences %}
|
|
<p class="footer">
|
|
{% picto_from_name "repeat" %}
|
|
<!-- TODO: see https://forge.chapril.org/jmtrivial/agenda_culturel/issues/65 -->
|
|
{% for r in event.recurrences.rrules %}
|
|
{{ r.to_text }}{% if not forloop.first %}, {% endif %}{% endfor %}, depuis le {{ event.recurrences.dtstart.date }}
|
|
</p>
|
|
{% endif %}
|
|
</div>
|
|
{% if perms.agenda_culturel.change_event %}
|
|
<div class="buttons">
|
|
{% include "agenda_culturel/edit-buttons-inc.html" with event=event %}
|
|
<a href="{{ event.get_absolute_url }}" role="button">Voir l'événement <svg width="1em" height="1em" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<use href="{% static 'images/feather-sprite.svg' %}#chevron-right" />
|
|
</svg></a>
|
|
</div>
|
|
{% endif %}
|
|
</footer>
|
|
</article>
|
|
|