Skip to content
Snippets Groups Projects
Commit 9d561595 authored by Martin Mareš's avatar Martin Mareš
Browse files

Nenabízíme tlačítka, která vedou na akce, na něž uživatel nemá právo

parent c4a7d04b
No related branches found
No related tags found
No related merge requests found
......@@ -159,7 +159,9 @@
<td>{{ task.sol_count }}
<td>{{ task.max_points|decimal|none_value('–') }}
<td><div class="btn-group">
{% if can_view_submits %}
<a class="btn btn-xs btn-primary" href="{{ ctx.url_for('org_contest_task', task_id=task.task_id) }}">Odevzdaná řešení</a>
{% endif %}
{% if can_edit_points or can_create_solutions %}
<a class="btn btn-xs btn-default" href="{{ ctx.url_for('org_contest_task_edit', task_id=task.task_id) }}">
{% if can_edit_points and can_create_solutions %}Zadat body / založit řešení
......@@ -168,7 +170,9 @@
{% endif %}
</div>
<td><div class="btn-group">
{% if can_view_submits %}
<a class="btn btn-xs btn-primary" href="{{ ctx.url_for('org_generic_batch_download', task_id=task.task_id) }}">Stáhnout ZIP</a>
{% endif %}
{% if can_upload_solutions %}
<a class='btn btn-xs btn-default' href="{{ ctx.url_for('org_generic_batch_upload', task_id=task.task_id) }}">Nahrát ZIP</a>
{% endif %}
......
......@@ -91,7 +91,7 @@
{{ table.to_html() }}
{% if contest %}
{% if contest and ctx.rights.have_right(Right.manage_contest) %}
<a class="btn btn-primary" href="{{ url_for('org_contest_add_user', ct_id=contest.contest_id, site_id=site.place_id if site else None) }}">Přidat účastníka</a>
{% endif %}
<a class="btn btn-default"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment