Skip to content
Snippets Groups Projects
Commit c852f53a authored by Jan Prachař's avatar Jan Prachař
Browse files

Check contest.state on a contest page

parent a595675b
No related branches found
No related tags found
1 merge request!71Check contest.state on a contest page
......@@ -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 %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment