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
Merge requests
!67
user_index: Přehlednější vstupní stránka pro účastníka
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
user_index: Přehlednější vstupní stránka pro účastníka
honza/mr9
into
devel
Overview
1
Commits
2
Changes
2
Merged
Jan Prachař
requested to merge
honza/mr9
into
devel
4 years ago
Overview
1
Commits
2
Changes
2
Expand
Tohle závisí na
!37 (merged)
a ještě by chtělo dořešit, jestli chceme zobrazovat i minulé ročníky.
0
0
Merge request reports
Compare
devel
version 3
08dd1466
4 years ago
version 2
08dd1466
4 years ago
version 1
4ea940e6
4 years ago
devel (base)
and
latest version
latest version
08dd1466
2 commits,
4 years ago
version 3
08dd1466
2 commits,
4 years ago
version 2
08dd1466
2 commits,
4 years ago
version 1
4ea940e6
1 commit,
4 years ago
2 files
+
29
−
12
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
mo/web/templates/user_index.html
+
28
−
12
Options
@@ -8,23 +8,39 @@
<table
class=
"table"
>
<thead>
<tr>
<th
title=
'ročník MO'
>
Roč.
<th
title=
'kategorie'
>
Kat.
<th>
Kategorie
<th>
Kolo
<th>
Obl
ast
<th>
Stav
<th>
Akce
<th>
Stav úč
ast
i
<th>
Stav
soutěže
<th>
Odkazy
<tbody>
{% for pion, contest, round in pions %}
{% set state = contest.ct_state() %}
<tr>
<td>
{{ round.year }}
<td>
{{ round.category }}
<td>
{{ round.name }}
<td>
{{ contest.place.name }}
<td
class=
"text-center"
style=
"font-size: 1.2em"
><b>
{{ round.category }}
</b>
<td>
{{ round.name }} {{ contest.place.name_locative() if contest.place.level > 0 else '' }}
<td>
{{ pion.state.friendly_name() }}
<td>
{{ contest.ct_long_state() }}
<td><div
class=
"btn-group"
>
<a
class=
'btn btn-xs btn-primary'
href=
'{{ url_for('
user_contest
',
id=
contest.contest_id)
}}'
>
Detail kola
</a>
</div>
<td>
{% if contest.ct_task_statement_available() %}
<a
class=
'btn btn-xs btn-success'
href=
'{{ url_for('
user_task_statement
',
id=
contest.contest_id)
}}'
>
Zadání
</a>
{% endif %}
{% if state != RoundState.preparing %}
<a
class=
'btn btn-xs btn-primary'
href=
'{{ url_for('
user_contest
',
id=
contest.contest_id)
}}'
>
{% if state == RoundState.running %}
Odevzdat řešení
{% elif state == RoundState.grading %}
Odevzdaná řešení
{% elif state == RoundState.closed %}
Prohlédnout opravy
{% else %}
Detail kola
{% endif %}
</a>
{% endif %}
{% if state == RoundState.closed %}
<a
class=
"btn btn-xs btn-warning"
href=
'{{ url_for('
public_score
',
contest_id=
contest.contest_id)
}}'
>
Výsledky
</a>
{% endif %}
{% endfor %}
</table>
{% else %}
Loading