{% extends "base.html" %} {% load has_group %} {% block content %}

{{ event.name }}

{{ event.eventtype.name }}
{% if event.datebegin.date == event.dateend.date %}

The {{ event.datebegin | date:"d-m-Y" }} from {{ event.datebegin | date:"G:i" }} to {{ event.dateend | date:"G:i" }} {% else %}

From {{ event.datebegin | date:"d-m-Y, G:i" }}
To {{ event.dateend | date:"d-m-Y, G:i" }} {% endif %} {% if event.number_of_week_from_today > 0 %}
In {{event.number_of_week_from_today}} week(s) {% endif %}

{{ event.place.address }}
{{ event.place.postal }} {{ event.place.city }}
{{ event.place.country }}

{% if event.place.nbkm %}

{{ event.place.nbkm }}km ({{ event.place.timing }}min)

{% endif %}
Participants
{% if request.user|has_group:"Trainer" %} {% endif %} {% if gymnast_list %} {% for gymnast in gymnast_list %} {% if request.user|has_group:"Trainer" %} {% endif %} {% endfor %}
{{ gymnast.0 }}
{% else %}

No partifcipants for now.

{% endif %}
{% if event.informations %} {{ event.to_markdown | safe }} {% else %} No informations for this event. {% endif %} {% if request.user|has_group:"Trainer" %}

{% endif %}
{% endblock %} {% block footerscript %} {% endblock %}