Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CERN Toolbar
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Web Team
Drupal
Public Drupal Repositories
Drupal 10
D10 Modules
CERN Toolbar
Commits
12324c59
Commit
12324c59
authored
7 years ago
by
Artem Antonov
Browse files
Options
Downloads
Patches
Plain Diff
Change markup structure
parent
33136bd7
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
cern_toolbar.module
+1
-1
1 addition, 1 deletion
cern_toolbar.module
src/Element/CernToolbar.php
+1
-1
1 addition, 1 deletion
src/Element/CernToolbar.php
templates/cern-toolbar.html.twig
+4
-1
4 additions, 1 deletion
templates/cern-toolbar.html.twig
with
6 additions
and
3 deletions
cern_toolbar.module
+
1
−
1
View file @
12324c59
...
...
@@ -31,7 +31,7 @@ function cern_toolbar_theme() {
return
[
'cern_toolbar'
=>
[
'render element'
=>
'element'
,
'variables'
=>
[
'toolbar_links'
=>
NULL
,
'attributes'
=>
[]],
'variables'
=>
[
'toolbar_links'
=>
NULL
,
'directory_link'
=>
NULL
,
'attributes'
=>
[]],
],
];
}
...
...
This diff is collapsed.
Click to expand it.
src/Element/CernToolbar.php
+
1
−
1
View file @
12324c59
...
...
@@ -199,7 +199,7 @@ class CernToolbar extends RenderElement {
],
];
}
$
items_toolbar
_link
s
[
]
=
[
$
element
[
'#directory
_link
'
]
=
[
'#type'
=>
'link'
,
'#title'
=>
t
(
'Directory'
),
'#url'
=>
URL
::
fromUri
(
'//cern.ch/directory'
),
...
...
This diff is collapsed.
Click to expand it.
templates/cern-toolbar.html.twig
+
4
−
1
View file @
12324c59
...
...
@@ -5,5 +5,8 @@
<span>
{{
'Accelerating science'
|
t
}}
</span>
</a>
</h1>
{{
toolbar_links
}}
<ul>
<li>
{{
toolbar_links
}}
</li>
<li>
{{
directory_link
}}
</li>
</ul>
</div>
\ No newline at end of file
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