Skip to content
Snippets Groups Projects
Commit 6a4983a6 authored by Martin Mareš's avatar Martin Mareš
Browse files

Opraveno: Orgovské rozhraní

parent 2b05112e
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !113. Comments created here will be created in the context of that merge request.
......@@ -49,7 +49,7 @@
{% else %}
{% endif %}
{% if state in [RoundState.grading, RoundState.closed] %}
{% if state in [RoundState.grading, RoundState.graded, RoundState.closed] %}
<tr><td>Oficiální výsledková listina<td>
{% if contest.scoretable %}<a href="{{ ctx.url_for('org_score_snapshot', scoretable_id=contest.scoretable_id) }}">Zveřejněna</a>
{% else %}<i>zatím není</i>{% endif %}
......@@ -67,7 +67,7 @@
{% if not site and can_manage %}
<a class="btn btn-default" href="{{ ctx.url_for('org_contest_add_user') }}">Přidat účastníka</a>
{% endif %}
{% if not site and can_view_contestants and state in [RoundState.grading, RoundState.closed] %}
{% if not site and can_view_contestants and state in [RoundState.grading, RoundState.graded, RoundState.closed] %}
<a class="btn btn-primary" href='{{ ctx.url_for('org_score') }}'>Výsledky</a>
{% endif %}
{% if can_upload_anything %}
......
......@@ -14,7 +14,7 @@
{% endblock %}
{% block pretitle %}
{% if contest.state in [RoundState.grading, RoundState.closed] %}
{% if contest.state in [RoundState.grading, RoundState.graded, RoundState.closed] %}
<div class="btn-group pull-right">
<a class="btn btn-default" href="{{ ctx.url_for('org_score') }}">Výsledky {{ round.get_level().name_genitive() }}</a>
<a class="btn btn-default" href="{{ ctx.url_for('org_score', ct_id=None) }}">Výsledky kola</a>
......
......@@ -14,7 +14,7 @@
{% block pretitle %}
<div class="btn-group pull-right">
<a class="btn btn-default" href="{{ ctx.url_for('org_contest_solutions', task_id=None) }}">Všechny úlohy</a>
{% if ctx.contest.state in [RoundState.grading, RoundState.closed] %}
{% if ctx.contest.state in [RoundState.grading, RoundState.graded, RoundState.closed] %}
<a class="btn btn-default" href="{{ ctx.url_for('org_score', task_id=None) }}">Výsledky {{ ctx.round.get_level().name_genitive() }}</a>
<a class="btn btn-default" href="{{ ctx.url_for('org_score', ct_id=None, task_id=None) }}">Výsledky kola</a>
{% endif %}
......
......@@ -88,7 +88,7 @@
{% if can_view_contestants %}
<a class="btn btn-primary" href='{{ ctx.url_for('org_generic_list') }}'>Seznam účastníků</a>
{% endif %}
{% if can_view_contestants and round.state in [RoundState.grading, RoundState.closed, RoundState.delegate] %}
{% if can_view_contestants and round.state in [RoundState.grading, RoundState.graded, RoundState.closed, RoundState.delegate] %}
<a class="btn btn-primary" href='{{ ctx.url_for('org_score') }}'>Výsledky</a>
{% endif %}
{% if can_manage_contest %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment