From 335570a4f3b43ad36d3dd4e231e03d392e130829 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Pracha=C5=99?= <jan.prachar@gmail.com>
Date: Fri, 22 Apr 2022 17:58:37 +0200
Subject: [PATCH] =?UTF-8?q?org=5Findex:=20Nezobrazovat=20tla=C4=8D=C3=ADtk?=
 =?UTF-8?q?o=20na=20p=C5=99id=C3=A1n=C3=AD=20=C3=BA=C4=8Dastn=C3=ADka,=20k?=
 =?UTF-8?q?dy=C5=BE=20u=C5=BE=20se=20opravuje?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

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

diff --git a/mo/web/templates/org_index.html b/mo/web/templates/org_index.html
index c60e6c25..f6e3b3d7 100644
--- a/mo/web/templates/org_index.html
+++ b/mo/web/templates/org_index.html
@@ -124,8 +124,8 @@
 				{% if o.rights.can_view_submits() and o.contest.state != RoundState.preparing and o.contest.state != RoundState.closed %}
 				<a class="btn btn-xs btn-success" href='{{ url_for('org_contest_solutions', ct_id=o.contest.contest_id) }}'>Tabulka řešení</a>
 				{% endif %}
-				{% if o.rights.have_right(Right.manage_contest) and o.contest.state != RoundState.closed %}
-				<a class="btn btn-xs btn-default" href="{{ url_for('org_contest_add_user', ct_id=o.contest.contest_id) }}">+ Přidat účastníka</a>
+				{% if o.rights.have_right(Right.manage_contest) and o.contest.state != RoundState.closed and o.contest.state != RoundState.grading %}
+				<a class="btn btn-xs btn-default hidden-xs" href="{{ url_for('org_contest_add_user', ct_id=o.contest.contest_id) }}">+ Přidat účastníka</a>
 				{% endif %}
 				{% if o.rights.have_right(Right.manage_contest) and o.contest.state == RoundState.preparing %}
 				<a class="btn btn-xs btn-default" href='{{ url_for('org_generic_import', ct_id=o.contest.contest_id) }}'>Import</a>
-- 
GitLab