Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Maják
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
TO
Maják
Commits
8671dd73
Commit
8671dd73
authored
10 months ago
by
Alexa Valentová
Browse files
Options
Downloads
Patches
Plain Diff
fix strip check
parent
bc32bc7d
No related branches found
No related tags found
2 merge requests
!1005
fix strip check
,
!1004
fix strip check
Pipeline
#18641
passed
10 months ago
Stage: build
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
shared/models/main.py
+9
-1
9 additions, 1 deletion
shared/models/main.py
with
9 additions
and
1 deletion
shared/models/main.py
+
9
−
1
View file @
8671dd73
...
@@ -251,7 +251,15 @@ class PageInMenuMixin(Page):
...
@@ -251,7 +251,15 @@ class PageInMenuMixin(Page):
for
menu
in
menu_iterator
:
for
menu
in
menu_iterator
:
if
menu
.
block_type
==
"
menu_item
"
:
if
menu
.
block_type
==
"
menu_item
"
:
if
menu
.
value
[
"
link
"
].
strip
()
==
instance
.
full_url
.
strip
():
if
(
menu
.
value
[
"
link
"
].
strip
()
if
menu
.
value
[
"
link
"
]
is
not
None
else
""
)
==
(
instance
.
full_url
.
strip
()
if
instance
.
full_url
else
""
):
return
menu
.
value
[
"
title
"
]
return
menu
.
value
[
"
title
"
]
if
menu
.
value
[
"
page
"
]
is
None
:
if
menu
.
value
[
"
page
"
]
is
None
:
...
...
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