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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martin Mareš
Odevzdávací Systém MO
Commits
a79b1473
Commit
a79b1473
authored
4 years ago
by
Martin Mareš
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'origin/master' into devel
parents
68e4b631
c3c2505b
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
mo/web/templates/org_contest.html
+6
-8
6 additions, 8 deletions
mo/web/templates/org_contest.html
mo/web/templates/org_index.html
+1
-0
1 addition, 0 deletions
mo/web/templates/org_index.html
mo/web/user.py
+1
-1
1 addition, 1 deletion
mo/web/user.py
with
8 additions
and
9 deletions
mo/web/templates/org_contest.html
+
6
−
8
View file @
a79b1473
{% extends "base.html" %}
{% set round = contest.round %}
{% set state = contest.state %}
{% set ct_state = contest.ct_state() %}
{% set site_id = site.place_id if site else None %}
{% block title %}
...
...
@@ -16,15 +18,11 @@
{% if site %}
<tr><td>
Soutěžní místo
<td><a
href=
'{{ url_for('
org_place
',
id=
site.place_id)
}}'
>
{{ site.name }}
</a>
{% endif %}
{% with state=contest.state %}
<tr><td>
Stav
<td><span
class=
'rstate-{{state.name}}'
>
{{ state.friendly_name() }}
</span>
{% if round.state != RoundState.delegate %}
(určeno nastavením kola)
{% endif %}
{% endwith %}
{% with state=contest.ct_state() %}
<tr><td>
Stav pro účastníky
<td><span
class=
'rstate-{{state.name}}'
>
{{ state.friendly_name() }}
</span>
{% endwith %}
<tr><td>
Stav pro účastníky
<td><span
class=
'rstate-{{ct_state.name}}'
>
{{ ct_state.friendly_name() }}
</span>
<tr><td>
Vaše role
<td>
{% if g.user.is_admin %}správce{% elif roles %}{{ roles|join(", ") }}{% else %}–{% endif %}
{% if group_contests|length > 1 %}
<tr><td>
Soutěže ve skupině kol:
<td>
...
...
@@ -48,14 +46,14 @@
<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>
{% 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>
{% endif %}
{% 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>
{% 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>
{% endif %}
{% if can_manage %}
...
...
This diff is collapsed.
Click to expand it.
mo/web/templates/org_index.html
+
1
−
0
View file @
a79b1473
...
...
@@ -11,6 +11,7 @@
<a
href=
'{{ url_for('
org_export_skoly
',
format=
'en_csv'
)
}}'
>
CSV s čárkami
</a>
,
<a
href=
'{{ url_for('
org_export_skoly
',
format=
'cs_csv'
)
}}'
>
CSV se středníky
</a>
,
<a
href=
'{{ url_for('
org_export_skoly
',
format=
'tsv'
)
}}'
>
TSV
</a>
<li><a
href=
'https://docs.google.com/document/d/1XXk7Od-ZKtfmfNa-9FpFjUqmy0Ekzf2-2q3EpSWyn1w/edit?usp=sharing'
>
Návod na tvorbu PDF
</a>
</ul>
<h3>
Rychlé hledání
</h3>
...
...
This diff is collapsed.
Click to expand it.
mo/web/user.py
+
1
−
1
View file @
a79b1473
...
...
@@ -18,7 +18,7 @@ from mo.web import app
import
mo.web.util
@app.route
(
'
/user
'
)
@app.route
(
'
/user
/
'
)
def
user_index
():
pcrs
=
load_pcrs
()
if
getattr
(
config
,
'
AUTO_REGISTER_TEST
'
,
False
)
and
not
any
(
round
.
category
==
'
T
'
for
pion
,
contest
,
round
in
pcrs
):
...
...
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