{% extends 'base.html' %} {% block content %}

{% block title %} {{ classe['nom'] }} (BAC{% if classe['niveau'] > 0 %} + {{ classe['niveau'] }}{% elif classe['niveau'] < 0 %} - {{ -classe['niveau'] }}{% endif %}){% endblock %}




Effectif : {{ eleves['listeLen'] }} élèves

Sports pratiqués :
Élèves :
{% for act in eleves['activity'] %}
  • {{ act['userPrenom'] }} {{ act['userNom'] }} a pratiqué {{ act['sportNom'] }} sur une distance de {% if act['activityDistance'] < 1000 %} {{ act['activityDistance'] }} m {% else %} {{ act['activityDistance'] // 1000 }},{{"%02d" % ((act['activityDistance'] // 10) % 100) }} km {% endif %} pendant {% if act['activityDuree'] >= 3600 %} {{ (act['activityDuree'] // 60) // 60 }} heure{% if (act['activityDuree'] // 60) // 60 > 1 %}s{% endif %} {% endif %} {% if act['activityDuree'] >= 60 and (act['activityDuree'] // 60) % 60 != 0 %} {{ (act['activityDuree'] // 60) % 60 }} minute{% if (act['activityDuree'] // 60) % 60 > 1 %}s{% endif %} {% endif %} {% if act['activityDuree'] > 0%} {{ act['activityDuree'] % 60 }} seconde{% if act['activityDuree'] % 60 > 1 %}s{% endif %} {% endif %} , soit une vitesse moyenne de {{ act['activitySpeed'] }} km/h.
  • {% endfor %}
    {% endblock %}