diff --git a/core/modules/views/templates/views-exposed-form.html.twig b/core/modules/views/templates/views-exposed-form.html.twig index 5a34f2f..3fdc576 100644 --- a/core/modules/views/templates/views-exposed-form.html.twig +++ b/core/modules/views/templates/views-exposed-form.html.twig @@ -18,6 +18,6 @@ #} {{ q }} {% endif %} -
+
{{ form }}
diff --git a/core/modules/views/templates/views-mini-pager.html.twig b/core/modules/views/templates/views-mini-pager.html.twig index 5fd95dc..7be4d32 100644 --- a/core/modules/views/templates/views-mini-pager.html.twig +++ b/core/modules/views/templates/views-mini-pager.html.twig @@ -12,6 +12,6 @@ */ #} {% if items %} -

{{ 'Pages'|t }}

+

{{ 'Pages'|t }}

{{ items }} {% endif %} diff --git a/core/modules/views/templates/views-more.html.twig b/core/modules/views/templates/views-more.html.twig index b161a65..85725cb 100644 --- a/core/modules/views/templates/views-more.html.twig +++ b/core/modules/views/templates/views-more.html.twig @@ -11,4 +11,4 @@ * @ingroup themeable */ #} -{{ link_text }} +{{ link_text }} diff --git a/core/modules/views/templates/views-view-grouping.html.twig b/core/modules/views/templates/views-view-grouping.html.twig index f06e6b6..2418587 100644 --- a/core/modules/views/templates/views-view-grouping.html.twig +++ b/core/modules/views/templates/views-view-grouping.html.twig @@ -16,7 +16,7 @@ * @ingroup themeable */ #} -
-
{{ title }}
-
{{ content }}
+
+
{{ title }}
+
{{ content }}
diff --git a/core/modules/views/templates/views-view-summary.html.twig b/core/modules/views/templates/views-view-summary.html.twig index db9bae5..1276393 100644 --- a/core/modules/views/templates/views-view-summary.html.twig +++ b/core/modules/views/templates/views-view-summary.html.twig @@ -19,7 +19,7 @@ * @ingroup themeable */ #} -
' }} +{% endfor %} diff --git a/core/modules/views/templates/views-view-summary.html.twig b/core/themes/classy/templates/views-view-summary.html.twig similarity index 100% copy from core/modules/views/templates/views-view-summary.html.twig copy to core/themes/classy/templates/views-view-summary.html.twig diff --git a/core/themes/classy/templates/views-view-table.html.twig b/core/themes/classy/templates/views-view-table.html.twig new file mode 100644 index 0000000..6b0b26c --- /dev/null +++ b/core/themes/classy/templates/views-view-table.html.twig @@ -0,0 +1,71 @@ +{# +/** + * @file + * Default theme implementation for displaying a view as a table. + * + * Available variables: + * - attributes: Remaining HTML attributes for the element. + * - class: HTML classes that can be used to style contextually through CSS. + * - title : The title of this group of rows. + * - header: The table header columns. + * - attributes: Remaining HTML attributes for the element. + * - content: HTML classes to apply to each header cell, indexed by + * the header's key. + * - caption_needed: Is the caption tag needed. + * - caption: The caption for this table. + * - accessibility_description: Extended description for the table details. + * - accessibility_summary: Summary for the table details. + * - rows: Table row items. Rows are keyed by row number. + * - attributes: HTML classes to apply to each row. + * - columns: Row column items. Columns are keyed by column number. + * - attributes: HTML classes to apply to each column. + * - content: The column content. + * + * @see template_preprocess_views_view_table() + * + * @ingroup themeable + */ +#} + + {% if caption_needed %} + + {% if caption %} + {{ caption }} + {% else %} + {{ title }} + {% endif %} + {% if (summary is not empty) or (description is not empty) %} +
+ {% if summary is not empty %} + {{ summary }} + {% endif %} + {% if description is not empty %} + {{ description }} + {% endif %} +
+ {% endif %} + + {% endif %} + {% if header %} + + + {% for column in header %} + + {{ column.content }} + + {% endfor %} + + + {% endif %} + + {% for row in rows %} + + {% for column in row.columns %} + + {{ column.content }} + + {% endfor %} + + {% endfor %} + + diff --git a/core/themes/classy/templates/views-view-unformatted.html.twig b/core/themes/classy/templates/views-view-unformatted.html.twig new file mode 100644 index 0000000..e3fb2e3 --- /dev/null +++ b/core/themes/classy/templates/views-view-unformatted.html.twig @@ -0,0 +1,24 @@ +{# +/** + * @file + * Default theme implementation to display a view of unformatted rows. + * + * 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. + * + * @see template_preprocess_views_view_unformatted() + * + * @ingroup themeable + */ +#} +{% if title %} +

{{ title }}

+{% endif %} +{% for row in rows %} + + {{ row.content }} +
+{% endfor %} diff --git a/core/modules/views/templates/views-view.html.twig b/core/themes/classy/templates/views-view.html.twig similarity index 100% copy from core/modules/views/templates/views-view.html.twig copy to core/themes/classy/templates/views-view.html.twig