Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
gin
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
gin
Commits
d10d3d12
Commit
d10d3d12
authored
11 months ago
by
Marco Gandi
Committed by
Sascha Eggenberger
11 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Toolbar menu: add check before adding home link
parent
8f8e8bf2
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!285
Toolbar menu: add check before adding home link
Pipeline
#192985
passed
11 months ago
Stage: build
Stage: test
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
templates/navigation/menu--toolbar--gin.html.twig
+1
-1
1 addition, 1 deletion
templates/navigation/menu--toolbar--gin.html.twig
with
1 addition
and
1 deletion
templates/navigation/menu--toolbar--gin.html.twig
+
1
−
1
View file @
d10d3d12
...
...
@@ -48,7 +48,7 @@
%}
{# Add Home if it doesn't exist #}
{%
if
menu_level
==
0
and
loop.index
==
1
and
item.gin_id
!=
'admin_toolbar_tools-help'
%}
{%
if
menu_level
==
0
and
loop.index
==
1
and
item.gin_id
is
not
empty
and
item.gin_id
!=
'admin_toolbar_tools-help'
%}
<li
class=
"menu-item menu-item--expanded menu-item__tools"
>
{%
if
icon_default
==
false
and
icon_path
!=
''
%}
<a
href=
"
{{
path
(
'<front>'
)
}}
"
class=
"toolbar-logo"
data-drupal-link-system-path=
"<front>"
>
...
...
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