Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Odevzdávací Systém MO
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martin Mareš
Odevzdávací Systém MO
Commits
f4d0cbd9
Commit
f4d0cbd9
authored
3 years ago
by
Martin Mareš
Browse files
Options
Downloads
Patches
Plain Diff
Tlačítko "Zpracování skenů" nabízíme i dozoru
parent
71737a17
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
mo/web/templates/org_contest.html
+6
-5
6 additions, 5 deletions
mo/web/templates/org_contest.html
with
6 additions
and
5 deletions
mo/web/templates/org_contest.html
+
6
−
5
View file @
f4d0cbd9
...
...
@@ -3,9 +3,10 @@
{% set state = contest.state %}
{% set ct_state = contest.ct_state() %}
{% set can_manage = rights.have_right(Right.manage_contest) %}
{% set can_upload = rights.can_upload_feedback() %}
{% set can_upload_feedback = rights.can_upload_feedback() %}
{% 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_
upload_feedback() or rights.can_upload
_solutions() %}
{% set can_create_solutions = rights.can_
create
_solutions() %}
{% set offer_view_statement = rights.offer_view_statement() %}
{% set can_view_contestants = rights.have_right(Right.view_contestants) %}
{% set can_view_submits = rights.have_right(Right.view_submits) %}
...
...
@@ -55,7 +56,7 @@
{% endif %}
</table>
{% if can_view_contestants or can_upload or can_manage %}{# Ostatní práva implikují některé z těchto #}
{% if can_view_contestants or can_upload
_anything
or can_manage %}{# Ostatní práva implikují některé z těchto #}
<div
class=
"btn-group"
>
{% if can_view_contestants %}
<a
class=
"btn btn-primary"
href=
'{{ ctx.url_for('
org_generic_list
')
}}'
>
Seznam účastníků
</a>
...
...
@@ -72,7 +73,7 @@
{% if can_view_contestants %}
<a
class=
"btn btn-default"
href=
'{{ ctx.url_for('
org_contest_protocols
')
}}'
>
Protokoly
</a>
{% endif %}
{% if can_upload %}
{% if can_upload
_anything
%}
<a
class=
"btn btn-default"
href=
'{{ ctx.url_for('
org_contest_scans
')
}}'
>
Zpracování skenů
</a>
{% endif %}
{% if not site and can_manage %}
...
...
@@ -159,7 +160,7 @@
</div>
<td><div
class=
"btn-group"
>
<a
class=
"btn btn-xs btn-primary"
href=
"{{ ctx.url_for('org_generic_batch_download', task_id=task.task_id) }}"
>
Stáhnout ZIP
</a>
{% if can_upload %}
{% 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 %}
{% if can_edit_points %}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment