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

U CMSkových úloh nenabízíme upload/download řešení

Když někdo uhodne URL, tak to může udělat – ostatně má právo provést
to po jednom řešení běžným editováním submitů.

Closes #384.
parent 9c01b251
No related branches found
No related tags found
No related merge requests found
......@@ -177,10 +177,10 @@
{% endif %}
</div>
<td><div class="btn-group">
{% if can_view_submits %}
{% if can_view_submits and task.type == TaskType.regular %}
<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_anything %}
{% if can_upload_anything and task.type == TaskType.regular %}
<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 %}
{% if can_edit_points %}
......
......@@ -266,10 +266,10 @@
{% endif %}
{% if can_handle_submits or can_upload %}
<td><div class="btn-group">
{% if can_handle_submits %}
{% if can_handle_submits and task.type == TaskType.regular %}
<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 %}
{% if can_upload and task.type == TaskType.regular %}
<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 %}
{% if can_upload %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment