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
8c2b62fe
Commit
8c2b62fe
authored
3 years ago
by
Jan Prachař
Browse files
Options
Downloads
Patches
Plain Diff
style: menu
parent
9e37f7fe
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
mo/web/menu.py
+1
-4
1 addition, 4 deletions
mo/web/menu.py
mo/web/templates/base.html
+10
-3
10 additions, 3 deletions
mo/web/templates/base.html
with
11 additions
and
7 deletions
mo/web/menu.py
+
1
−
4
View file @
8c2b62fe
...
@@ -20,12 +20,10 @@ class MenuItem:
...
@@ -20,12 +20,10 @@ class MenuItem:
def
get_menu
():
def
get_menu
():
if
not
g
.
user
:
if
not
g
.
user
:
items
=
[
items
=
[
MenuItem
(
url_for
(
'
index
'
),
"
Domů
"
)
MenuItem
(
url_for
(
'
public_rounds
'
),
"
Výsledky
"
),
MenuItem
(
url_for
(
'
public_rounds
'
),
"
Výsledky
"
)
]
]
elif
g
.
user
.
is_org
or
g
.
user
.
is_admin
:
elif
g
.
user
.
is_org
or
g
.
user
.
is_admin
:
items
=
[
items
=
[
MenuItem
(
url_for
(
'
org_index
'
),
"
Domů
"
),
MenuItem
(
url_for
(
'
org_place_root
'
),
"
Místa
"
),
MenuItem
(
url_for
(
'
org_place_root
'
),
"
Místa
"
),
MenuItem
(
url_for
(
'
org_rounds
'
),
"
Soutěž
"
),
MenuItem
(
url_for
(
'
org_rounds
'
),
"
Soutěž
"
),
MenuItem
(
url_for
(
'
org_users
'
),
"
Soutěžící
"
),
MenuItem
(
url_for
(
'
org_users
'
),
"
Soutěžící
"
),
...
@@ -35,7 +33,6 @@ def get_menu():
...
@@ -35,7 +33,6 @@ def get_menu():
]
]
else
:
else
:
items
=
[
items
=
[
MenuItem
(
url_for
(
'
user_index
'
),
"
Domů
"
),
MenuItem
(
url_for
(
'
doc_index
'
),
"
Návod
"
),
MenuItem
(
url_for
(
'
doc_index
'
),
"
Návod
"
),
]
]
...
...
This diff is collapsed.
Click to expand it.
mo/web/templates/base.html
+
10
−
3
View file @
8c2b62fe
...
@@ -55,6 +55,9 @@
...
@@ -55,6 +55,9 @@
<span
class=
"icon-bar"
></span>
<span
class=
"icon-bar"
></span>
<span
class=
"icon-bar"
></span>
<span
class=
"icon-bar"
></span>
</button>
</button>
<a
class=
"navbar-brand"
href=
"/"
title=
"Domů"
>
<span
class=
"glyphicon glyphicon-home"
></span>
</a>
</div>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<!-- Collect the nav links, forms, and other content for toggling -->
...
@@ -67,8 +70,13 @@
...
@@ -67,8 +70,13 @@
{% endfor %}
{% endfor %}
</ul>
</ul>
{% if g.user %}
{% if g.user %}
<form
class=
"navbar-form navbar-right"
method=
"post"
action=
'{{ url_for('
logout
')
}}'
>
<form
class=
"navbar-form navbar-right"
method=
"post"
action=
'{{ url_for('
logout
')
}}'
style=
"padding-right: 0"
>
<button
type=
"submit"
class=
"btn btn-default"
>
Odhlásit se
</button>
<button
type=
"submit"
class=
"btn btn-default visible-sm"
title=
"Odhlásit se"
>
<span
class=
"glyphicon glyphicon-log-out"
></span>
</button>
<button
type=
"submit"
class=
"btn btn-default hidden-sm"
title=
"Odhlásit se"
>
<span
class=
"glyphicon glyphicon-log-out"
></span>
Odhlásit se
</button>
</form>
</form>
{% endif %}
{% endif %}
<ul
class=
"nav navbar-nav navbar-right"
>
<ul
class=
"nav navbar-nav navbar-right"
>
...
@@ -78,7 +86,6 @@
...
@@ -78,7 +86,6 @@
</li>
</li>
{% endfor %}
{% endfor %}
</ul>
</ul>
</ul>
</div>
</div>
</div>
</div>
</nav>
</nav>
...
...
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