From c852f53aca8971b17dab2663529145273d2d7dd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Pracha=C5=99?= <jan.prachar@gmail.com> Date: Mon, 22 Mar 2021 13:02:52 +0100 Subject: [PATCH] Check contest.state on a contest page --- mo/web/templates/org_contest.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mo/web/templates/org_contest.html b/mo/web/templates/org_contest.html index 2d790c93..56df5102 100644 --- a/mo/web/templates/org_contest.html +++ b/mo/web/templates/org_contest.html @@ -48,14 +48,14 @@ <div class="btn-group"> <a class="btn btn-primary" href='{{ url_for('org_contest_list', id=contest.contest_id, site_id=site_id) }}'>Seznam účastníků</a> - {% if round.state != RoundState.preparing %} + {% if contest.state != RoundState.preparing %} <a class="btn btn-primary" href='{{ url_for('org_contest_solutions', id=contest.contest_id, site_id=site_id) }}'>Odevzdaná řešení</a> {% endif %} {% if not site %} - {% if round.state in [RoundState.grading, RoundState.closed] %} + {% if contest.state in [RoundState.grading, RoundState.closed] %} <a class="btn btn-primary" href='{{ url_for('org_score', contest_id=contest.contest_id) }}'>Výsledky</a> {% endif %} - {% if round.state == RoundState.preparing and round.seq > 1 %} + {% if contest.state == RoundState.preparing and round.seq > 1 %} <a class="btn btn-primary" href='{{ url_for('org_contest_advance', contest_id=contest.contest_id) }}'>Postup z minulého kola</a> {% endif %} {% if can_manage %} -- GitLab