More tidying.
[yaffs-website] / web / modules / contrib / views_bootstrap / templates / views-bootstrap-list-group.html.twig
1 {#
2 /**
3  * @file views-bootstrap-list-group.html.twig
4  * Default simple view template to display Bootstrap List Group.
5  *
6  * Available variables:
7  * - view: The view object.
8  * - rows: A list of the view's row items.
9  * - id: A valid HTML ID and guaranteed to be unique.
10  *
11  * @see template_preprocess_views_bootstrap_list_group()
12  *
13  * @ingroup views_templates
14  */
15 #}
16 {%
17   set classes = [
18     'views-view-list-group',
19   ]
20 %}
21
22 <ul id="{{ id }}" {{ attributes.addClass(classes) }}>
23     {% for key, row in rows %}
24       <li class="list-group-item">
25           {% if row.title %}
26               <h4 class="list-group-item-heading">{{ row.title }}</h4>
27           {% endif %}
28           <p class="list-group-item-text">{{ row.content }}</p>
29       </li>
30     {% endfor %}
31 </ul>