Skip to content
Snippets Groups Projects
Commit 04d94666 authored by Max Bronsema's avatar Max Bronsema
Browse files

Updating core templates to match new views templates.

parent f1520f62
Branches
Tags 8.3.2 8.x-3.2
No related merge requests found
Pipeline #167742 failed
......@@ -20,6 +20,7 @@
* - content: A list of columns or rows. Each row or column contains:
* - attributes: HTML attributes for each row or column.
* - content: The row or column contents.
* - grouping_label_element: The HTML heading element used to wrap the group label.
*
* @see template_preprocess_views_view_grid()
*/
......
......@@ -20,6 +20,7 @@
* - content: A list of columns or rows. Each row or column contains:
* - attributes: HTML attributes for each row or column.
* - content: The row or column contents.
* - grouping_label_element: The HTML heading element used to wrap the group label.
*
* @see template_preprocess_views_view_grid()
*/
......
......@@ -10,11 +10,19 @@
* - title: The group heading.
* - content: The content to be grouped.
* - rows: The rows returned from the view.
* - grouping_label_element: The HTML heading element used to wrap the group label.
*
* @see template_preprocess_views_view_grouping()
*/
#}
<div class="view-grouping">
<div class="view-grouping-header">{{ title }}</div>
{% if title %}
{% if grouping_label_element is empty %}
<div class="view-grouping-header">{{ title }}</div>
{% else %}
<{{ grouping_label_element }}>{{ title }}</{{ grouping_label_element }}>
{% endif %}
{% endif %}
<div class="view-grouping-content">{{ content }}</div>
</div>
......@@ -12,6 +12,7 @@
* - list: @todo.
* - type: Starting tag will be either a ul or ol.
* - attributes: HTML attributes for the list element.
* - grouping_label_element: The HTML heading element used to wrap the group label.
*
* @see template_preprocess_views_view_list()
*/
......@@ -20,7 +21,11 @@
<div{{ attributes }}>
{% endif %}
{% if title %}
<h3>{{ title }}</h3>
{% if grouping_label_element is empty %}
{{ title }}
{% else %}
<{{ grouping_label_element }}>{{ title }}</{{ grouping_label_element }}>
{% endif %}
{% endif %}
<{{ list.type }}{{ list.attributes }}>
......
......@@ -11,12 +11,17 @@
* - view: The view object.
* - default_row_class: A flag indicating whether default classes should be
* used on rows.
* - grouping_label_element: The HTML heading element used to wrap the group label.
*
* @see template_preprocess_views_view_unformatted()
*/
#}
{% if title %}
<h3>{{ title }}</h3>
{% if grouping_label_element is empty %}
{{ title }}
{% else %}
<{{ grouping_label_element }}>{{ title }}</{{ grouping_label_element }}>
{% endif %}
{% endif %}
{% for row in rows %}
{%
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment