From e457eba13c773788a65704d8cff7b52fc9f4c2e4 Mon Sep 17 00:00:00 2001
From: Martin Mares <mj@ucw.cz>
Date: Wed, 5 Jan 2022 21:13:45 +0100
Subject: [PATCH] =?UTF-8?q?Zpracov=C3=A1n=C3=AD=20sken=C5=AF=20nab=C3=ADz?=
 =?UTF-8?q?=C3=ADme=20i=20na=20str=C3=A1nce=20sout=C4=9B=C5=BEn=C3=ADho=20?=
 =?UTF-8?q?m=C3=ADsta?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 mo/web/templates/org_contest.html | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/mo/web/templates/org_contest.html b/mo/web/templates/org_contest.html
index 1f33dbe4..fedf7a52 100644
--- a/mo/web/templates/org_contest.html
+++ b/mo/web/templates/org_contest.html
@@ -56,14 +56,14 @@
 	{% if can_manage and site %}
 	<a class="btn btn-default" href="{{ ctx.url_for('org_contest_add_user') }}">Přidat účastníka</a>
 	{% endif %}
-	{% if not site %}
-	{% if state in [RoundState.grading, RoundState.closed] %}
+	{% if not site and state in [RoundState.grading, RoundState.closed] %}
 	<a class="btn btn-primary" href='{{ ctx.url_for('org_score') }}'>Výsledky</a>
 	{% endif %}
 	<a class="btn btn-default" href='{{ ctx.url_for('org_contest_protocols') }}'>Protokoly</a>
 	{% if can_upload %}
 	<a class="btn btn-default" href='{{ ctx.url_for('org_contest_scans') }}'>Zpracování skenů</a>
 	{% endif %}
+	{% if not site %}
 	{% if state != RoundState.closed and round.seq > 1 %}
 	<a class="btn btn-primary" href='{{ ctx.url_for('org_contest_advance') }}'>Postup z minulého kola</a>
 	{% endif %}
-- 
GitLab