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

Files

+ 13
2
@@ -7,9 +7,14 @@
{% 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_elsewhere = ctx.possible_rights_elsewhere() %}
{% macro rights_elsewhere_info() %}
<a href='{{ url_for('org_index') }}'><span class='icon' title='Vaše role vám nedává všechna práva k této soutěži/místu, ale k jiné soutěži/místu ano. Kliknutím získáte seznam svých soutěží/míst.'>🛈</span></a>
{% endmacro %}
{% block title %}
{{ round.round_code() }}: {% if site %}soutěžní místo {{ site.name }}{% else %}{{ contest.place.name }}{% endif %}
@@ -41,8 +46,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_elsewhere %}
viz stránka vaší soutěže/místa&nbsp;{{ rights_elsewhere_info() }}
{% else %}
není dostupné
{% endif %}
@@ -88,6 +95,10 @@
</div>
{% endif %}
{% if possible_rights_elsewhere %}
<p class='space-top rights-elsewhere'>Další akce můžete provádět na stránce své soutěže nebo soutěžního místa.&nbsp;{{ rights_elsewhere_info() }}
{% endif %}
{% if not site %}
<h3>Soutěžní místa</h3>
{% if places_counts %}
Loading