diff --git a/core/modules/views/src/Tests/Plugin/StyleMappingTest.php b/core/modules/views/src/Tests/Plugin/StyleMappingTest.php index b6aeb0b..58984fe 100644 --- a/core/modules/views/src/Tests/Plugin/StyleMappingTest.php +++ b/core/modules/views/src/Tests/Plugin/StyleMappingTest.php @@ -53,7 +53,7 @@ protected function mappedOutputHelper($view) { $output = $view->preview(); $rendered_output = \Drupal::service('renderer')->renderRoot($output); $this->storeViewPreview($rendered_output); - $rows = $this->elements->body->div->div->div; + $rows = $this->elements->body->div->div; $data_set = $this->dataSet(); $count = 0; diff --git a/core/modules/views/src/Tests/Plugin/StyleUnformattedTest.php b/core/modules/views/src/Tests/Plugin/StyleUnformattedTest.php index 40c534d..ae0ef10 100644 --- a/core/modules/views/src/Tests/Plugin/StyleUnformattedTest.php +++ b/core/modules/views/src/Tests/Plugin/StyleUnformattedTest.php @@ -32,7 +32,7 @@ function testDefaultRowClasses() { $output = $view->preview(); $this->storeViewPreview(\Drupal::service('renderer')->renderRoot($output)); - $rows = $this->elements->body->div->div->div; + $rows = $this->elements->body->div->div; $count = 0; $count_result = count($view->result); foreach ($rows as $row) { diff --git a/core/modules/views/templates/views-view.html.twig b/core/modules/views/templates/views-view.html.twig index 9a661b8..4f8203f 100644 --- a/core/modules/views/templates/views-view.html.twig +++ b/core/modules/views/templates/views-view.html.twig @@ -39,55 +39,30 @@ %} {{ title_prefix }} - {% if title %} - {{ title }} - {% endif %} + {{ title }} {{ title_suffix }} + {% if header %}
{{ header }}
{% endif %} - {% if exposed %} -
- {{ exposed }} -
- {% endif %} - {% if attachment_before %} -
- {{ attachment_before }} -
- {% endif %} - {% if rows %} -
- {{ rows }} -
- {% elseif empty %} -
- {{ empty }} -
- {% endif %} + {{ exposed }} + {{ attachment_before }} + + {{ rows }} + {{ empty }} + {{ pager }} + + {{ attachment_after }} + {{ more }} - {% if pager %} - {{ pager }} - {% endif %} - {% if attachment_after %} -
- {{ attachment_after }} -
- {% endif %} - {% if more %} - {{ more }} - {% endif %} {% if footer %}
{{ footer }}
{% endif %} - {% if feed_icons %} -
- {{ feed_icons }} -
- {% endif %} + + {{ feed_icons }}