annotate core/modules/views/templates/views-view-summary.html.twig @ 19:fa3358dc1485 tip

Add ndrum files
author Chris Cannam
date Wed, 28 Aug 2019 13:14:47 +0100
parents 4c8ae668cc8c
children
rev   line source
Chris@0 1 {#
Chris@0 2 /**
Chris@0 3 * @file
Chris@0 4 * Default theme implementation to display a list of summary lines.
Chris@0 5 *
Chris@0 6 * Available variables:
Chris@0 7 * - rows: The rows contained in this view.
Chris@0 8 * Each row contains:
Chris@0 9 * - url: The summary link URL.
Chris@0 10 * - link: The summary link text.
Chris@0 11 * - count: The number of items under this grouping.
Chris@0 12 * - attributes: HTML attributes to apply to each row.
Chris@0 13 * - active: A flag indicating whtether the row is active.
Chris@0 14 * - options: Flags indicating how the summary should be displayed.
Chris@0 15 * This contains:
Chris@0 16 * - count: A flag indicating whether the count should be displayed.
Chris@0 17 *
Chris@0 18 * @see template_preprocess_views_view_summary()
Chris@0 19 *
Chris@0 20 * @ingroup themeable
Chris@0 21 */
Chris@0 22 #}
Chris@0 23 <ul>
Chris@0 24 {% for row in rows %}
Chris@0 25 <li><a href="{{ row.url }}"{{ row.attributes.addClass(row.active ? 'is-active')|without('href') }}>{{ row.link }}</a>
Chris@0 26 {% if options.count %}
Chris@0 27 ({{ row.count }})
Chris@0 28 {% endif %}
Chris@0 29 </li>
Chris@0 30 {% endfor %}
Chris@0 31 </ul>