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
Compare revisions
74472381bff28a078d8174fd1073ade99014cf2a to e2bcbb26111e14d28a604d94e8a24a305ce7ca49
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
mj/mo-submit
Select target project
No results found
e2bcbb26111e14d28a604d94e8a24a305ce7ca49
Select Git revision
Swap
Target
mj/mo-submit
Select target project
mj/mo-submit
1 result
74472381bff28a078d8174fd1073ade99014cf2a
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (5)
Opravena trapná chyba v kontrole přístupu k zadání :)
· e8d90711
Martin Mareš
authored
4 years ago
e8d90711
Menu: Oprava tlačítka Domů v uživatelském menu
· 1ad40c9b
Martin Mareš
authored
4 years ago
1ad40c9b
Přejmenována šablona user_main na systematičtější user_index
· 6407ccae
Martin Mareš
authored
4 years ago
6407ccae
User index: Gender-neutral
· 94177a01
Martin Mareš
authored
4 years ago
94177a01
User index: Třídění kol
· e2bcbb26
Martin Mareš
authored
4 years ago
e2bcbb26
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
mo/web/menu.py
+1
-1
1 addition, 1 deletion
mo/web/menu.py
mo/web/templates/user_index.html
+2
-2
2 additions, 2 deletions
mo/web/templates/user_index.html
mo/web/user.py
+3
-2
3 additions, 2 deletions
mo/web/user.py
with
6 additions
and
5 deletions
mo/web/menu.py
View file @
e2bcbb26
...
...
@@ -32,7 +32,7 @@ def get_menu():
]
else
:
items
=
[
MenuItem
(
url_for
(
'
org
_index
'
),
"
Domů
"
),
MenuItem
(
url_for
(
'
user
_index
'
),
"
Domů
"
),
]
# Login / user settings
...
...
This diff is collapsed.
Click to expand it.
mo/web/templates/user_
ma
in.html
→
mo/web/templates/user_in
dex
.html
View file @
e2bcbb26
...
...
@@ -3,7 +3,7 @@
<h2>
Vítejte
</h2>
{% if pions %}
<p>
Jste přihlášen do
následujících kol MO:
<p>
Účastníte se
následujících kol MO:
<table
class=
data
>
<thead>
...
...
@@ -30,7 +30,7 @@
{% endfor %}
</table>
{% else %}
<p>
Momentálně
nejste přihlášen do
žádného kola MO.
<p>
Momentálně
se neúčastníte
žádného kola MO.
{% endif %}
{% endblock %}
This diff is collapsed.
Click to expand it.
mo/web/user.py
View file @
e2bcbb26
...
...
@@ -30,10 +30,11 @@ def user_index():
.
filter
(
db
.
Participation
.
user
==
g
.
user
)
.
filter
(
db
.
Round
.
state
!=
db
.
RoundState
.
preparing
)
.
options
(
joinedload
(
db
.
Contest
.
place
))
.
order_by
(
db
.
Round
.
year
.
desc
(),
db
.
Round
.
category
,
db
.
Round
.
seq
)
.
all
())
return
render_template
(
'
user_
ma
in.html
'
,
'
user_in
dex
.html
'
,
pions
=
pions
,
when
=
get_request_time
(),
db
=
db
,
# kvůli hodnotám enumů
...
...
@@ -113,7 +114,7 @@ def user_contest(id: int):
def
user_task_statement
(
id
:
int
):
contest
=
get_contest
(
id
)
if
task_statement_available
(
contest
):
if
not
task_statement_available
(
contest
):
logger
.
warn
(
f
'
Účastník #
{
g
.
user
.
user_id
}
chce zadání, na které nemá právo
'
)
raise
werkzeug
.
exceptions
.
Forbidden
()
...
...
This diff is collapsed.
Click to expand it.