Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
facets
Commits
569aa72e
Commit
569aa72e
authored
Aug 29, 2017
by
joachim
Committed by
borisson_
Aug 29, 2017
Browse files
Issue
#2896164
by joachim: facets styled with JS no longer have a wrapping DIV
parent
67112f9e
Changes
1
Hide whitespace changes
Inline
Side-by-side
templates/facets-item-list.html.twig
View file @
569aa72e
...
...
@@ -21,21 +21,23 @@
* @ingroup themeable
*/
#}
{%
if
context.list_style
%}
{%
-
set
attributes
=
attributes.addClass
(
'item-list__'
~
context.list_style
)
%}
{%
endif
%}
{%
if
items
or
empty
%}
{%
-
if
title
is
not
empty
-
%}
<h3>
{{
title
}}
</h3>
{%
-
endif
-
%}
<div
class=
"facets-widget-
{{
-
context.list_style
-
}}
"
>
{%
if
context.list_style
%}
{%
-
set
attributes
=
attributes.addClass
(
'item-list__'
~
context.list_style
)
%}
{%
endif
%}
{%
if
items
or
empty
%}
{%
-
if
title
is
not
empty
-
%}
<h3>
{{
title
}}
</h3>
{%
-
endif
-
%}
{%
-
if
items
-
%}
<
{{
list_type
}}{{
attributes
}}
>
{%
-
for
item
in
items
-
%}
<li
{{
item.attributes
}}
>
{{
item.value
}}
</li>
{%
-
endfor
-
%}
</
{{
list_type
}}
>
{%
-
else
-
%}
{{
-
empty
-
}}
{%
-
endif
-
%}
{%
-
endif
%}
{%
-
if
items
-
%}
<
{{
list_type
}}{{
attributes
}}
>
{%
-
for
item
in
items
-
%}
<li
{{
item.attributes
}}
>
{{
item.value
}}
</li>
{%
-
endfor
-
%}
</
{{
list_type
}}
>
{%
-
else
-
%}
{{
-
empty
-
}}
{%
-
endif
-
%}
{%
-
endif
%}
</div>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment