From 7397afd236424fafdacb70fd93277cd8f90e2fea Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Thu, 14 Jan 2021 19:23:32 +0100 Subject: [PATCH] Display the team ranking --- .../templates/participation/pool_detail.html | 17 ++++++++++-- .../participation/tournament_detail.html | 15 +++++++++++ apps/participation/views.py | 17 ++++++++++++ locale/fr/LC_MESSAGES/django.po | 27 +++++++++++-------- 4 files changed, 63 insertions(+), 13 deletions(-) diff --git a/apps/participation/templates/participation/pool_detail.html b/apps/participation/templates/participation/pool_detail.html index 0dbf035..f2ad59a 100644 --- a/apps/participation/templates/participation/pool_detail.html +++ b/apps/participation/templates/participation/pool_detail.html @@ -10,7 +10,7 @@
{% trans "Tournament:" %}
-
{{ pool.tournament }}
+
{{ pool.tournament }}
{% trans "Round:" %}
{{ pool.get_round_display }}
@@ -34,10 +34,23 @@
{% trans "Defended solutions:" %}
{% for passage in pool.passages.all %} - {{ passage.defended_solution }}{% if not forloop.last %}, {% endif %} + {{ passage.defended_solution }}{% if not forloop.last %}, {% endif %} {% endfor %}
+ +
+
+
{% trans "Ranking" %}
+
+
+
    + {% for participation, note in notes %} +
  • {{ participation.team }} : {{ note }}
  • + {% endfor %} +
+
+
{% if user.registration.is_admin %}