From 0ececda133a6c19d681f30546aa108a327f07f69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?benjamin=20melan=C3=A7on?= Date: Mon, 10 Dec 2018 17:38:46 -0500 Subject: [PATCH] Move our rows wrapper to view-unformatted template which is also called --- .../views/views-view--page.html.twig | 5 ++- .../views-view-unformatted--page.html.twig | 36 +++++++++++++++++++ 2 files changed, 38 insertions(+), 3 deletions(-) create mode 100644 agaric/templates/views/views-view-unformatted--page.html.twig diff --git a/agaric/templates/views/views-view--page.html.twig b/agaric/templates/views/views-view--page.html.twig index da8bfa7..5626130 100644 --- a/agaric/templates/views/views-view--page.html.twig +++ b/agaric/templates/views/views-view--page.html.twig @@ -51,9 +51,8 @@ {{ exposed }} {{ attachment_before }} -
- {{ rows }} -
+ {{ rows }} + {{ empty }} {{ pager }} diff --git a/agaric/templates/views/views-view-unformatted--page.html.twig b/agaric/templates/views/views-view-unformatted--page.html.twig new file mode 100644 index 0000000..362759b --- /dev/null +++ b/agaric/templates/views/views-view-unformatted--page.html.twig @@ -0,0 +1,36 @@ +{# +/** + * @file + * Default theme implementation for an unformatted view display. + * + * If the display is configured to use Display Suite's alternating view modes, + * column classes are added appropriate to the view modes. + * + * @see http://bulma.io/documentation/columns/basics + * + * Available variables: + * - title: The title of this group of rows. May be empty. + * - rows: A list of the view's row items. + * - attributes: The row's HTML attributes. + * - content: The row's content. + * - view: The view object. + * - default_row_class: A flag indicating whether default classes should be + * used on rows. + * + * @see template_preprocess_views_view_unformatted() + * @ingroup themeable + */ +#} +{# + View rows can be configured to have default classes per view mode. A child + template may define view_modes, which will be merged with the + default_view_modes below. +#} +
+{% if title %} + {{ title }} +{% endif %} +{% for row in rows %} + {{ row.content }} +{% endfor %} +