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

contest: Sjednocení "pretitle" navigace

parent 561201a7
Branches
No related tags found
No related merge requests found
......@@ -12,8 +12,7 @@
{% block pretitle %}
{% if contest.state in [RoundState.grading, 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>
<a class="btn btn-warning" href="{{ ctx.url_for('org_score') }}">Výsledky {{ round.get_level().name_genitive() }}</a>
</div>
{% endif %}
{% endblock %}
......
......@@ -11,10 +11,9 @@
{% 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>
<a class="btn btn-success" href="{{ ctx.url_for('org_contest_solutions', task_id=None) }}">Tabulka řešení</a>
{% if ctx.contest.state in [RoundState.grading, 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>
<a class="btn btn-warning" href="{{ ctx.url_for('org_score', task_id=None) }}">Výsledky {{ ctx.round.get_level().name_genitive() }}</a>
{% endif %}
</div>
{% endblock %}
......
......@@ -10,26 +10,17 @@
{{ ctx.breadcrumbs() }}
{% endblock %}
{% block body %}
<div class="pull-right text-right form-frame">
<h4>Rychlé odkazy</h4>
Soutěžní kolo:
<div class="btn-group">
<a class="btn btn-default" href="{{ ctx.url_for('org_generic_list', ct_id=None) }}">Účastníci</a>
{% if round.state in [RoundState.grading, RoundState.closed] %}
<a class="btn btn-default" href="{{ ctx.url_for('org_score', ct_id=None) }}">Výsledky</a>
{% endif %}
</div>
<br>{{ round.get_level().name|capitalize }}:
<div class="btn-group">
<a class="btn btn-default" href="{{ ctx.url_for('org_contest_solutions') }}">Tabulka řešení</a>
{% block pretitle %}
<div class="btn-group pull-right">
<a class="btn btn-default" href="{{ ctx.url_for('org_generic_list') }}">Účastníci</a>
{% if round.state in [RoundState.grading, RoundState.closed] %}
<a class="btn btn-default" href="{{ ctx.url_for('org_score') }}">Výsledky</a>
<a class="btn btn-success" href="{{ ctx.url_for('org_contest_solutions') }}">Tabulka řešení</a>
{% if contest.state in [RoundState.grading, RoundState.closed] %}
<a class="btn btn-warning" href="{{ ctx.url_for('org_score') }}">Výsledky</a>
{% endif %}
</div>
</div>
{% endblock %}
{% block body %}
<table class="table table-bordered table-auto">
<thead>
<tr><th colspan='2'>Údaje o účastníkovi
......
......@@ -87,7 +87,7 @@
<a class="btn btn-xs btn-warning" href='{{ o.url_for('org_score') }}'>Výsledky</a>
{% endif %}
{% 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) }}'>Odevzdaná řešení</a>
<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>
......
......@@ -17,7 +17,7 @@ Výsledky {{ round.name|round_genitive|lower }}{% if public %} {{ round.year }}.
<div class="btn-group pull-right">
{% if contest %}
{% if can_view_submits %}
<a class="btn btn-success" href="{{ ctx.url_for('org_contest_solutions') }}">Odevzdaná řešení</a>
<a class="btn btn-success" href="{{ ctx.url_for('org_contest_solutions') }}">Tabulka řešení</a>
{% endif %}
<a class="btn btn-warning" href="{{ ctx.url_for('org_score', ct_id=None) }}">Výsledky kola</a>
{% endif %}
......
......@@ -9,6 +9,13 @@
{{ ctx.breadcrumbs(action=ctx.user.full_name()) }}
{% endblock %}
{% block pretitle %}
<div class="btn-group pull-right">
<a class="btn btn-default" href="{{ ctx.url_for('org_contest_user') }}">{{ ctx.round.name }} {{ ctx.round.category }}: {{ ctx.user.full_name() }}</a>
<a class="btn btn-success" href="{{ ctx.url_for('org_contest_solutions', task_id=None) }}">Tabulka řešení</a>
</div>
{% endblock %}
{% block body %}
{% include "parts/org_submit_warning.html" %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment