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
c3c2505b
Commit
c3c2505b
authored
4 years ago
by
Martin Mareš
Browse files
Options
Downloads
Patches
Plain Diff
Opravena práce se stavy kol/soutěží v org_contest.html
parent
be1d522e
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
-8
6 additions, 8 deletions
mo/web/templates/org_contest.html
with
6 additions
and
8 deletions
mo/web/templates/org_contest.html
+
6
−
8
View file @
c3c2505b
{% extends "base.html" %}
{% extends "base.html" %}
{% set round = contest.round %}
{% set round = contest.round %}
{% set state = contest.state %}
{% set ct_state = contest.ct_state() %}
{% set site_id = site.place_id if site else None %}
{% set site_id = site.place_id if site else None %}
{% block title %}
{% block title %}
...
@@ -16,15 +18,11 @@
...
@@ -16,15 +18,11 @@
{% if site %}
{% if site %}
<tr><td>
Soutěžní místo
<td><a
href=
'{{ url_for('
org_place
',
id=
site.place_id)
}}'
>
{{ site.name }}
</a>
<tr><td>
Soutěžní místo
<td><a
href=
'{{ url_for('
org_place
',
id=
site.place_id)
}}'
>
{{ site.name }}
</a>
{% endif %}
{% endif %}
{% with state=contest.state %}
<tr><td>
Stav
<td><span
class=
'rstate-{{state.name}}'
>
{{ state.friendly_name() }}
</span>
<tr><td>
Stav
<td><span
class=
'rstate-{{state.name}}'
>
{{ state.friendly_name() }}
</span>
{% if round.state != RoundState.delegate %}
{% if round.state != RoundState.delegate %}
(určeno nastavením kola)
(určeno nastavením kola)
{% endif %}
{% endif %}
{% endwith %}
<tr><td>
Stav pro účastníky
<td><span
class=
'rstate-{{ct_state.name}}'
>
{{ ct_state.friendly_name() }}
</span>
{% with state=contest.ct_state() %}
<tr><td>
Stav pro účastníky
<td><span
class=
'rstate-{{state.name}}'
>
{{ state.friendly_name() }}
</span>
{% endwith %}
<tr><td>
Vaše role
<td>
{% if g.user.is_admin %}správce{% elif roles %}{{ roles|join(", ") }}{% else %}–{% endif %}
<tr><td>
Vaše role
<td>
{% if g.user.is_admin %}správce{% elif roles %}{{ roles|join(", ") }}{% else %}–{% endif %}
{% if group_contests|length > 1 %}
{% if group_contests|length > 1 %}
<tr><td>
Soutěže ve skupině kol:
<td>
<tr><td>
Soutěže ve skupině kol:
<td>
...
@@ -48,14 +46,14 @@
...
@@ -48,14 +46,14 @@
<div
class=
"btn-group"
>
<div
class=
"btn-group"
>
<a
class=
"btn btn-primary"
href=
'{{ url_for('
org_contest_list
',
id=
contest.contest_id,
site_id=
site_id)
}}'
>
Seznam účastníků
</a>
<a
class=
"btn btn-primary"
href=
'{{ url_for('
org_contest_list
',
id=
contest.contest_id,
site_id=
site_id)
}}'
>
Seznam účastníků
</a>
{% if
round.
state != RoundState.preparing %}
{% if state != RoundState.preparing %}
<a
class=
"btn btn-primary"
href=
'{{ url_for('
org_contest_solutions
',
id=
contest.contest_id,
site_id=
site_id)
}}'
>
Odevzdaná řešení
</a>
<a
class=
"btn btn-primary"
href=
'{{ url_for('
org_contest_solutions
',
id=
contest.contest_id,
site_id=
site_id)
}}'
>
Odevzdaná řešení
</a>
{% endif %}
{% endif %}
{% if not site %}
{% if not site %}
{% if
round.
state in [RoundState.grading, RoundState.closed] %}
{% if state in [RoundState.grading, RoundState.closed] %}
<a
class=
"btn btn-primary"
href=
'{{ url_for('
org_score
',
contest_id=
contest.contest_id)
}}'
>
Výsledky
</a>
<a
class=
"btn btn-primary"
href=
'{{ url_for('
org_score
',
contest_id=
contest.contest_id)
}}'
>
Výsledky
</a>
{% endif %}
{% endif %}
{% if
round.
state == RoundState.preparing and round.seq > 1 %}
{% if state == RoundState.preparing and round.seq > 1 %}
<a
class=
"btn btn-primary"
href=
'{{ url_for('
org_contest_advance
',
contest_id=
contest.contest_id)
}}'
>
Postup z minulého kola
</a>
<a
class=
"btn btn-primary"
href=
'{{ url_for('
org_contest_advance
',
contest_id=
contest.contest_id)
}}'
>
Postup z minulého kola
</a>
{% endif %}
{% endif %}
{% if can_manage %}
{% if can_manage %}
...
...
This diff is collapsed.
Click to expand it.
Martin Mareš
@mj
mentioned in merge request
!71 (closed)
·
4 years ago
mentioned in merge request
!71 (closed)
mentioned in merge request !71
Toggle commit list
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