Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
uw_fdsu_theme_resp
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor 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
WCMS
uw_fdsu_theme_resp
Commits
2aa04319
Commit
2aa04319
authored
8 months ago
by
Eric Bremner
Committed by
Kevin Paxman
8 months ago
Browse files
Options
Downloads
Patches
Plain Diff
ISTWCMS-6944: add label to block title if flag is set
parent
8115e2ce
No related branches found
No related tags found
1 merge request
!131
ISTWCMS-6944: add label to block title if flag is set
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
templates/blocks/block.html.twig
+7
-0
7 additions, 0 deletions
templates/blocks/block.html.twig
with
7 additions
and
0 deletions
templates/blocks/block.html.twig
+
7
−
0
View file @
2aa04319
...
@@ -36,6 +36,7 @@
...
@@ -36,6 +36,7 @@
{%
if
in_layout_builder
%}
{%
if
in_layout_builder
%}
{{
attach_library
(
'uw_theme_admin/uw_layout_builder'
)
}}
{{
attach_library
(
'uw_theme_admin/uw_layout_builder'
)
}}
{%
endif
%}
{%
endif
%}
{{
dd
()
}}
{%
if
content
%}
{%
if
content
%}
<div
{{
attributes.addClass
(
classes
)
}}
>
<div
{{
attributes.addClass
(
classes
)
}}
>
...
@@ -44,11 +45,17 @@
...
@@ -44,11 +45,17 @@
{%
endif
%}
{%
endif
%}
{{
title_prefix
}}
{{
title_prefix
}}
{%
if
label
%}
{%
if
label
%}
{%
if
add_label_flag
%}
<label
for=
"
{{
label_for
}}
"
>
{%
endif
%}
{%
if
heading_level
%}
{%
if
heading_level
%}
<
{{
heading_level
}}{{
title_attributes
}}
class
="
block-title
"
>
{{
label
}}
</
{{
heading_level
}}
>
<
{{
heading_level
}}{{
title_attributes
}}
class
="
block-title
"
>
{{
label
}}
</
{{
heading_level
}}
>
{%
else
%}
{%
else
%}
<h2
{{
title_attributes
}}
>
{{
label
}}
</h2>
<h2
{{
title_attributes
}}
>
{{
label
}}
</h2>
{%
endif
%}
{%
endif
%}
{%
if
add_label_flag
%}
</label>
{%
endif
%}
{%
endif
%}
{%
endif
%}
{{
title_suffix
}}
{{
title_suffix
}}
{%
block
content
%}
{%
block
content
%}
...
...
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