{% extends "base.html" %} {% set round = contest.round %} {% set state = contest.state %} {% set ct_state = contest.ct_state() %} {% set can_manage = rights.have_right(Right.manage_contest) %} {% set can_upload = rights.can_upload_feedback() %} {% set can_edit_points = not site and rights.can_edit_points() %} {% set can_create_solutions = rights.can_upload_feedback() or rights.can_upload_solutions() %} {% set offer_view_statement, offer_view_statement_reason = rights.offer_view_statement() %} {% set can_view_contestants = rights.have_right(Right.view_contestants) %} {% set can_view_submits = rights.can_view_submits() %} {% block title %} {{ round.name }} {{ round.category }} {{ contest.place.name_locative() }} {% endblock %} {% block breadcrumbs %} {{ ctx.breadcrumbs() }} {% endblock %} {% block body %} {% if site %}

Soutěžní místo: {{ site.name }}

{% endif %} {% if not site %}
Zadání úloh {% if offer_view_statement %} PDF Stáhnout {% else %} {{ offer_view_statement_reason }} {% endif %}
Moje role{% if g.user.is_admin %}správce{% elif roles %}{{ roles|join(", ") }}{% else %}–{% endif %} {% if group_contests|length > 1 %}
Soutěže ve skupině kol {% for c in group_contests %} {% if c != contest %}{% endif %} {{ c.round.name }} {{ c.round.category }} {% if c != contest %}{% endif %}
{% endfor %} {% endif %}
{% if can_manage or g.user.is_admin %} {% endif %}

{% if state == RoundState.preparing %} {% elif state == RoundState.running %} {% elif state == RoundState.grading %} {% else %} {% endif %} Stav soutěže

{{ round.name }} {{ state.friendly_name()|replace("opravuje se", "se opravuje")|replace("připravuje se", "se připravuje") }} {% if round.state != RoundState.delegate %} (určeno nastavením kola) {% elif can_manage and not site %} {% if state == RoundState.running %}

{{ edit_form.csrf_token }}
{% elif state == RoundState.grading %}
{{ edit_form.csrf_token }}
{% endif %} {% endif %} {% if state != ct_state %}

Účastníci vidí stav: {{ ct_state.friendly_name() }} {% endif %}

{% endif %}
{% if can_view_contestants or can_manage %}

Účastníci {% if places_counts %} (celkem {{ places_counts|sum(attribute=1) }}) {% endif %}

{% if can_view_contestants %} Seznam {% endif %} {% if can_manage %} Přidat {% if not site and state != RoundState.closed and round.seq > 1 %} Postup z minulého kola {% endif %} {% if not site %} Importovat CSV {% endif %} {% endif %}
{% endif %} {% if (can_view_submits and state != RoundState.preparing) or can_upload or (not site and can_view_contestants and (state == RoundState.grading or state == RoundState.closed)) %}

Odevzdaná řešení a opravy

{% if can_view_submits and state != RoundState.preparing %} Tabulka řešení {% endif %} {% if not site and can_view_contestants and (state == RoundState.grading or state == RoundState.closed) %} Výsledky {% endif %} {% if can_upload %} Nahrát ZIP {% endif %}
{% elif not site and state == RoundState.closed %}
Výsledky
{% endif %}
{% if not site and places_counts|length > 1 %}

Soutěžní místa

{% for (place, count) in places_counts %} {% endfor %}
MístoPočet účastníkůAkce
{{ place.name }} {{ count }}
Detail {% if can_manage %} Přidat účastníka
{% endif %}
Celkem {{ places_counts|sum(attribute=1) }}
{% endif %}

Úlohy

{% if tasks %}
{% for task in tasks %} {% endfor %}
Kód Název Odevzdaná řešení Maximum bodů Jednotlivé akce Dávkové operace
{{ task.code }} {{ task.name }} {{ task.sol_count }} {{ task.max_points|decimal|none_value('–') }} {% if can_view_submits %} Odevzdaná řešení {% endif %} {% if can_edit_points or can_create_solutions %} {% if not can_edit_points %}Založit řešení{% else %}Zadat body{% endif %} {% endif %} {% if can_view_submits %} Stáhnout ZIP {% endif %} {% if can_upload %} Nahrát ZIP {% endif %} {% if can_edit_points %} Nahrát body {% endif %}
{% else %}

Zatím nebyly přidány žádné úlohy.

{% endif %} {% endblock %}