"Fossies" - the Fresh Open Source Software Archive

Member "drupal-8.9.10/core/themes/stable/templates/views/views-view-list.html.twig" (26 Nov 2020, 861 Bytes) of package /linux/www/drupal-8.9.10.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) HTML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 {#
    2 /**
    3  * @file
    4  * Theme override for a view template to display a list of rows.
    5  *
    6  * Available variables:
    7  * - attributes: HTML attributes for the container.
    8  * - rows: A list of rows for this list.
    9  *   - attributes: The row's HTML attributes.
   10  *   - content: The row's contents.
   11  * - title: The title of this group of rows. May be empty.
   12  * - list: @todo.
   13  *   - type: Starting tag will be either a ul or ol.
   14  *   - attributes: HTML attributes for the list element.
   15  *
   16  * @see template_preprocess_views_view_list()
   17  */
   18 #}
   19 {% if attributes -%}
   20   <div{{ attributes }}>
   21 {% endif %}
   22   {% if title %}
   23     <h3>{{ title }}</h3>
   24   {% endif %}
   25 
   26   <{{ list.type }}{{ list.attributes }}>
   27 
   28     {% for row in rows %}
   29       <li{{ row.attributes }}>
   30         {{- row.content -}}
   31       </li>
   32     {% endfor %}
   33 
   34   </{{ list.type }}>
   35 
   36 {% if attributes -%}
   37   </div>
   38 {% endif %}