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

{% block title %} {{ sport['nom'] }} {% endblock %}




Pratiqué {{ data['activityLen'] }} séances.

Temps les plus courts :


    {% for act in data['shortestTime'][:3] %}
  1. {{ act['userPrenom'] }} {{ act['userNom'] }} {% 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.
  2. {% endfor %}

Temps les plus longs :


    {% for act in data['shortestTime'][-3:][::-1] %}
  1. {{ act['userPrenom'] }} {{ act['userNom'] }} {% 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.
  2. {% endfor %}

Distances les plus courtes :


    {% for act in data['shortestDistance'][:3] %}
  1. {{ act['userPrenom'] }} {{ act['userNom'] }} {% 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.
  2. {% endfor %}

Distances les plus longues :


    {% for act in data['shortestDistance'][-3:][::-1] %}
  1. {{ act['userPrenom'] }} {{ act['userNom'] }} {% 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.
  2. {% endfor %}

Allures les plus lentes :


    {% for act in data['slowest'][:3] %}
  1. {{ act['userPrenom'] }} {{ act['userNom'] }} {% 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.
  2. {% endfor %}

Allures les plus rapides :


    {% for act in data['slowest'][-3:][::-1] %}
  1. {{ act['userPrenom'] }} {{ act['userNom'] }} {% 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.
  2. {% endfor %}
Pratiquants ({{ data['usersLen'] }} élèves) :
{% for act in data['activity'] %}
  • {{ act['userPrenom'] }} {{ act['userNom'] }} en classe de {{ act['classeNom'] }} a pratiqué {{ sport['nom'] }} 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 %}