From e6fb05a6c8a2c1fdaa76c05c2624db0f4ef13a51 Mon Sep 17 00:00:00 2001 From: HungBacktracking <21120011@student.hcmus.edu.vn> Date: Fri, 8 Sep 2023 17:44:07 +0700 Subject: [PATCH] Add new ui for active-contest --- templates/contest/list.html | 78 ++++++++++++++++++------------------- 1 file changed, 39 insertions(+), 39 deletions(-) diff --git a/templates/contest/list.html b/templates/contest/list.html index 7c63c44..89a9a84 100644 --- a/templates/contest/list.html +++ b/templates/contest/list.html @@ -233,45 +233,45 @@ {{ _('Active Contests') }}
- - - - - - {% if not request.in_contest %} - - {% endif %} - - - - {% for participation in active_participations %} - {% with contest=participation.contest %} - - - - {{ contest_join(contest, request) }} - - {% endwith %} - {% endfor %} - -
{{ _('Contest') }}{{ _('Users') }}
-
- {{ contest_head(contest) }} - {% if contest.start_time %} -
- {% if contest.time_limit %} - - {% trans countdown=participation.end_time|as_countdown %}Window ends in {{countdown}}{% endtrans %} - - {% elif contest.time_before_end %} - {% trans countdown=contest.end_time|as_countdown %}Ends in {{countdown}}{% endtrans %} - {% endif %} - {{ time_left(contest) }} - {% endif %} -
-
- {{ user_count(contest, request.user) }} -
+ + {% for participation in active_participations %} + {% with contest=participation.contest %} +
+
+
Kì thi:
+ {{ contest_head(contest) }} +
+
+
Thời gian:
+
+ {% if contest.start_time %} + {% if contest.time_limit %} + + {% trans countdown=participation.end_time|as_countdown %}Window ends in {{countdown}}{% endtrans %} + + {% elif contest.time_before_end %} + {% trans countdown=contest.end_time|as_countdown %}Ends in {{countdown}}{% endtrans %} + {% endif %} + {{ time_left(contest) }} + {% endif %} +
+
+
+
Định dạng:
+ {% if contest.format_name == "default" %} IOI + {% else %} {{ contest.format_name|upper }} + {% endif %} +
+
+
Người tham gia:
+ {{ user_count(contest, request.user) }} +
+
+ {{ contest_join(contest, request) }} +
+
+ {% endwith %} + {% endfor %}

{% endif %}