Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ui_suite_material
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
ui_suite_material
Merge requests
!9
Issue
#3497483
by pdureau: Clean variant logic in templates
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Issue
#3497483
by pdureau: Clean variant logic in templates
issue/ui_suite_material-3497483:3497483-variant
into
2.0.x
Overview
0
Commits
1
Pipelines
0
Changes
14
Merged
Pierre Dureau
requested to merge
issue/ui_suite_material-3497483:3497483-variant
into
2.0.x
5 months ago
Overview
0
Commits
1
Pipelines
0
Changes
14
Expand
Closes
#3497483
0
0
Merge request reports
Compare
2.0.x
2.0.x (base)
and
latest version
latest version
d239c038
1 commit,
5 months ago
14 files
+
31
−
34
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
14
Search (e.g. *.vue) (Ctrl+P)
components/banner/banner.twig
+
2
−
2
Options
{%
if
variant
and
variant
|
lower
!=
'default'
%}
{%
set
attributes
=
attributes.addClass
(
'mdc-banner--'
~
variant
|
lower
|
replace
(
{
_
:
'-'
}
))
%}
{%
if
variant
and
variant
!=
'default'
%}
{%
set
attributes
=
attributes.addClass
(
'mdc-banner--'
~
variant
|
replace
(
{
_
:
'-'
}
))
%}
{%
endif
%}
<div
{{
attributes.addClass
(
'mdc-banner'
)
.
setAttribute
(
'role'
,
'banner'
)
}}
>
Loading