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

+ 9
5
@@ -10,7 +10,11 @@
{% 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() %}
{% 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 %}
@@ -44,8 +48,8 @@
{% if round.tasks_file %}
{% 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
{% elif possible_rights_elsewhere %}
viz stránka vaší soutěže/místa&nbsp;{{ rights_elsewhere_info() }}
{% else %}
není dostupné
{% endif %}
@@ -91,8 +95,8 @@
</div>
{% endif %}
{% if possible_rights_below %}
<p><i>Další akce můžete provádět na stránce soutěžního místa.</i>
{% if possible_rights_elsewhere %}
<p class='space-top text-info'>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 %}
Loading