From e235f83f35ac9111a9c07303a07d5a9dafed2281 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Pracha=C5=99?= <jan.prachar@gmail.com> Date: Wed, 21 Apr 2021 01:21:11 +0200 Subject: [PATCH] =?UTF-8?q?P=C5=99idat=20=C3=BA=C4=8Dastn=C3=ADka:=20oprav?= =?UTF-8?q?a=20tla=C4=8D=C3=ADtek?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mo/web/templates/org_contest.html | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/mo/web/templates/org_contest.html b/mo/web/templates/org_contest.html index 948a7cb0..9ff17139 100644 --- a/mo/web/templates/org_contest.html +++ b/mo/web/templates/org_contest.html @@ -49,6 +49,9 @@ {% if 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 can_manage and site %} + <a class="btn btn-default" href="{{ url_for('org_contest_add_user', id=contest.contest_id, site_id=site_id) }}">+ Přidat účastníka</a> + {% endif %} {% if not site %} {% if state in [RoundState.grading, RoundState.closed] %} <a class="btn btn-primary" href='{{ url_for('org_score', contest_id=contest.contest_id) }}'>Výsledky</a> @@ -82,7 +85,7 @@ <td> <a class="btn btn-xs btn-primary" href="{{ url_for('org_contest', id=contest.contest_id, site_id=place.place_id) }}">Detail</a> {% if can_manage %} - <a class="btn btn-xs btn-default" href="{{ url_for('org_contest_add_user', id=contest.contest_id, site_id=place.place_id) }}">Přidat účastníka</a> + <a class="btn btn-xs btn-default" href="{{ url_for('org_contest_add_user', id=contest.contest_id, site_id=place.place_id) }}">+ Přidat účastníka</a> {% endif %} </tr> {% endfor %} @@ -99,8 +102,8 @@ {% endif %} {% endif %} <div class="btn-group"> - {% if can_manage %} - <a class="btn btn-default" href='{{ url_for('org_contest_add_user', id=contest.contest_id) }}'>Přidat účastníka</a> + {% if can_manage and not site %} + <a class="btn btn-default" href='{{ url_for('org_contest_add_user', id=contest.contest_id) }}'>+ Přidat účastníka</a> {% endif %} </div> -- GitLab