Skip to content
Snippets Groups Projects
Commit e80cec78 authored by Eric Bremner's avatar Eric Bremner
Browse files

ISTWCMS-5369: adding show empty logic to views

parent 1b84a82c
No related branches found
No related tags found
No related merge requests found
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
* @see template_preprocess_views_view() * @see template_preprocess_views_view()
*/ */
#} #}
{% {%
set classes = [ set classes = [
'view', 'view',
...@@ -56,6 +57,10 @@ ...@@ -56,6 +57,10 @@
} %} } %}
{% endif %} {% endif %}
{% if not show_empty %}
{% set show_empty = 'yes' %}
{% endif %}
{% include '@components/view/views-view/views-view.twig' with { {% include '@components/view/views-view/views-view.twig' with {
'attributes': attributes, 'attributes': attributes,
'css_name': css_name, 'css_name': css_name,
...@@ -64,6 +69,7 @@ ...@@ -64,6 +69,7 @@
'footer': footer, 'footer': footer,
'rows': rows, 'rows': rows,
'empty': empty.area, 'empty': empty.area,
'show_empty': show_empty,
'pager': pager, 'pager': pager,
'exposed': exposed, 'exposed': exposed,
'feed_icons': feed_icons, 'feed_icons': feed_icons,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment