uikit-view-list.html.twig in UIkit Components 8
Same filename and directory in other branches
Theme override for a view template to display a list of rows.
Available variables:
- attributes: HTML attributes for the container.
- rows: A list of rows for this list.
- attributes: The row's HTML attributes.
- content: The row's contents.
- title: The title of this group of rows. May be empty.
- list_attributes: HTML attributes for the list element.
File
uikit_views/templates/views/uikit-view-list.html.twigView source
- {#
- /**
- * @file
- * Theme override for a view template to display a list of rows.
- *
- * Available variables:
- * - attributes: HTML attributes for the container.
- * - rows: A list of rows for this list.
- * - attributes: The row's HTML attributes.
- * - content: The row's contents.
- * - title: The title of this group of rows. May be empty.
- * - list_attributes: HTML attributes for the list element.
- *
- * @see template_preprocess_views_view_list()
- * @see template_preprocess_uikit_view_list()
- */
- #}
- {% if attributes -%}
- <div{{ attributes }}>
- {% endif %}
-
- {% if title %}
- <h3>{{ title }}</h3>
- {% endif %}
-
- <ul{{ list_attributes }}>
-
- {% for row in rows %}
- <li{{ row.attributes }}>{{ row.content }}</li>
- {% endfor %}
-
- </ul>
-
- {% if attributes -%}
- </div>
- {% endif %}