From 696ba109a118280523b9f2a939a6435e8be9f348 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Pracha=C5=99?= <jan.prachar@gmail.com> Date: Wed, 4 May 2022 14:17:43 +0200 Subject: [PATCH] =?UTF-8?q?org=5Fcontest:=20zobrazen=C3=AD=20odkazu=20na?= =?UTF-8?q?=20ve=C5=99ejnou=20v=C3=BDsledkovku=20po=20ukon=C4=8Den=C3=AD?= =?UTF-8?q?=20sout=C4=9B=C5=BEe?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mo/web/templates/org_contest.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/mo/web/templates/org_contest.html b/mo/web/templates/org_contest.html index d5540acd..6bf9c8cc 100644 --- a/mo/web/templates/org_contest.html +++ b/mo/web/templates/org_contest.html @@ -142,7 +142,7 @@ </div> </div> {% endif %} -{% if state != RoundState.preparing and (can_view_contestants or can_view_submits) %} +{% if (can_view_submits and state != RoundState.preparing) or can_upload or (not site and can_view_contestants and (state == RoundState.grading or state == RoundState.closed)) %} <div class="col-md-5"> <div class="panel panel-default"> <div class="panel-heading"> @@ -155,7 +155,7 @@ {% if can_view_submits and state != RoundState.preparing %} <a class="btn btn-success" href='{{ ctx.url_for('org_contest_solutions') }}'><span class="glyphicon glyphicon-th-list"></span> Tabulka řešení</a> {% endif %} - {% if not site and ((can_view_contestants and state == RoundState.grading) or state == RoundState.closed) %} + {% if not site and can_view_contestants and (state == RoundState.grading or state == RoundState.closed) %} <a class="btn btn-warning" href='{{ ctx.url_for('org_score') }}'><span class="glyphicon glyphicon-bullhorn"></span> Výsledky</a> {% endif %} {% if can_upload %} @@ -166,6 +166,10 @@ </div> </div> </div> +{% elif not site and state == RoundState.closed %} +<div class="col-md-12"> + <a class="btn btn-lg btn-warning" href='{{ ctx.url_for('public_score') }}'><span class="glyphicon glyphicon-bullhorn"></span> Výsledky</a> +</div> {% endif %} </div> -- GitLab