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
c32f27f4
Commit
c32f27f4
authored
3 years ago
by
Jan Prachař
Browse files
Options
Downloads
Patches
Plain Diff
Tabulka řešení: odkazy na výsledky a účastníky v záhlaví tabulky
parent
6656514a
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_solutions.html
+18
-11
18 additions, 11 deletions
mo/web/templates/org_contest_solutions.html
with
18 additions
and
11 deletions
mo/web/templates/org_contest_solutions.html
+
18
−
11
View file @
c32f27f4
...
...
@@ -13,13 +13,6 @@
{{ ctx.breadcrumbs(action="Založení řešení" if edit_form else "Tabulka řešení") }}
{% endblock %}
{% block pretitle %}
{% if contest.state in [RoundState.grading, RoundState.closed] %}
<div
class=
"btn-group pull-right"
>
<a
class=
"btn btn-warning"
href=
"{{ ctx.url_for('org_score') }}"
>
Výsledky {{ round.get_level().name_genitive() }}
</a>
</div>
{% endif %}
{% endblock %}
{% block body %}
{% include "parts/org_submit_warning.html" %}
...
...
@@ -53,8 +46,8 @@ Přes ikonku <span class="icon">🔍</span> se dostanete na detail, kde můžete
{% endif %}
<thead>
<tr>
<th
row
span=
2
>
Účastník
<
th
rowspan=
2
>
Stav účasti
</th
>
<th
col
span=
"2"
>
<
a
class=
"btn btn-xs btn-default"
href=
'{{ ctx.url_for('
org_generic_list
')
}}'
><span
class=
"glyphicon glyphicon-user"
></span>
Seznam účastníků
</a
>
{% for task in tasks[4*i:4*(i+1)] %}
<th
colspan=
4
>
<a
href=
"{{ ctx.url_for('org_contest_task', task_id=task.task_id) }}"
>
{{ task.code }}
</a>
{% if edit_points or edit_create %}
...
...
@@ -65,11 +58,22 @@ Přes ikonku <span class="icon">🔍</span> se dostanete na detail, kde můžete
{% endif %}
{% endfor %}
{% if last_loop %}
<th
rowspan=
2
>
Body celkem
<th>
{% if contest.state in [RoundState.grading, RoundState.closed] %}
<a
class=
"btn btn-xs btn-warning"
href=
"{{ ctx.url_for('org_score') }}"
>
<span
class=
"glyphicon glyphicon-bullhorn"
></span>
Výsledková listina
</a>
{% endif %}
{% endif %}
</tr>
<tr>
<th>
Účastník
<th>
Stav účasti
{% for task in tasks[4*i:4*(i+1)] %}
<th
title=
"Řešení"
>
Ř
<th
title=
"Oprava"
>
O
<th
title=
"Body"
>
B
<th
title=
"Detail"
><span
class=
"icon"
>
🔍
</span>
{% endfor %}
{% if last_loop %}
<th>
Body celkem
{% endif %}
</tr>
</thead>
{% for pion in pions %}
...
...
@@ -167,7 +171,10 @@ Přes ikonku <span class="icon">🔍</span> se dostanete na detail, kde můžete
{% else %}
<div>
{% if rights.can_create_solutions() %}
<a
class=
"btn btn-primary"
href=
"{{ ctx.url_for('org_contest_solutions_edit') }}"
>
Založit řešení hromadně
</a>
<a
class=
"btn btn-default"
href=
"{{ ctx.url_for('org_contest_solutions_edit') }}"
>
<span
class=
"glyphicon glyphicon-check"
></span>
Založit řešení hromadně
</a>
{% endif %}
</div>
{% endif %}
...
...
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