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 %} +