Skip to content
Snippets Groups Projects

Práva k soutěžím a soutěžním místům

Merged Martin Mareš requested to merge mj/prava-k-mistum into devel
2 unresolved threads
Files
4
@@ -7,9 +7,10 @@
{% set can_upload_anything = rights.can_upload_feedback() or rights.can_upload_solutions() %}
{% set can_edit_points = not site and rights.can_edit_points() %}
{% set can_create_solutions = rights.can_create_solutions() %}
{% set offer_view_statement = rights.offer_view_statement() %}
{% set can_view_statement = rights.can_view_statement() %}
{% set can_view_contestants = rights.have_right(Right.view_contestants) %}
{% set can_view_submits = rights.have_right(Right.view_submits) %}
{% set possible_rights_below = ctx.possible_rights_below() %}
{% block title %}
{{ round.round_code() }}: {% if site %}soutěžní místo {{ site.name }}{% else %}{{ contest.place.name }}{% endif %}
@@ -41,8 +42,10 @@
{% endif %}
<tr><td>Zadání<td>
{% if round.tasks_file %}
{% if offer_view_statement %}
{% if can_view_statement %}
<a href='{{ ctx.url_for('org_task_statement', ct_id=None) }}'>stáhnout</a>
{% elif possible_rights_below %}
viz stránka soutěžního místa
{% else %}
není dostupné
{% endif %}
@@ -88,6 +91,10 @@
</div>
{% endif %}
{% if possible_rights_below %}
<p><i>Další akce můžete provádět na stránce soutěžního místa.</i>
{% endif %}
{% if not site %}
<h3>Soutěžní místa</h3>
{% if places_counts %}
Loading