{% extends "core/base.jinja" %} {% block content %} {% if club.has_rights_in_club(user) %} {% trans %}Create news{% endtrans %} {% endif %} {% for semester_code, semester_events in events %}

{{ semester_code }}

{% for event in semester_events %}
{{ event.title }}
{# Events that occur weekly from the start to the end of the semester would take a lot of space if shown by default. Thus, if the event has more than one date, those are hidden by a details element. If there is only one date, it is directly displayed. #} {% set dates = event.dates.all()|list %} {% if dates|length == 1 %} - {% else %}
{% trans trimmed nb_occurrences=dates|length %} Dates ({{ nb_occurrences }} occurrences) {% endtrans %}
    {% for d in dates %}
  • -
  • {% endfor %}
{% endif %}

{% trans %}Permalink{% endtrans %}

{{ request.build_absolute_uri(event.get_absolute_url())|urlize }}

{% trans %}Summary{% endtrans %}

{% if event.summary %} {{ event.summary|markdown }} {% else %}

{% trans %}No summary{% endtrans %}

{% endif %}

{% trans %}Description{% endtrans %}

{% if event.content %} {{ event.content|markdown }} {% else %}

{% trans %}No detailed description{% endtrans %}

{% endif %}
{% endfor %}
{% endfor %} {% endblock %}