Mercurial > hg > isophonics-drupal-site
annotate core/modules/views/templates/views-view-summary-unformatted.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 for unformatted summary links. |
Chris@0 | 5 * |
Chris@0 | 6 * Available variables: |
Chris@0 | 7 * - rows: The rows contained in this view. |
Chris@0 | 8 * - url: The URL to this row's content. |
Chris@0 | 9 * - count: The number of items this summary item represents. |
Chris@0 | 10 * - separator: A separator between each row. |
Chris@0 | 11 * - attributes: HTML attributes for a row. |
Chris@0 | 12 * - active: A flag indicating whether the row is active. |
Chris@0 | 13 * - options: Flags indicating how each row should be displayed. This contains: |
Chris@0 | 14 * - count: A flag indicating whether the row's 'count' should be displayed. |
Chris@0 | 15 * - inline: A flag indicating whether the item should be wrapped in an inline |
Chris@0 | 16 * or block level HTML element. |
Chris@0 | 17 * |
Chris@0 | 18 * @see template_preprocess_views_view_summary_unformatted() |
Chris@0 | 19 * |
Chris@0 | 20 * @ingroup themeable |
Chris@0 | 21 */ |
Chris@0 | 22 #} |
Chris@0 | 23 {% for row in rows %} |
Chris@0 | 24 {{ options.inline ? '<span' : '<div' }} > |
Chris@0 | 25 {% if row.separator -%} |
Chris@0 | 26 {{ row.separator }} |
Chris@0 | 27 {%- endif %} |
Chris@0 | 28 <a href="{{ row.url }}"{{ row.attributes.addClass(row.active ? 'is-active')|without('href') }}>{{ row.link }}</a> |
Chris@0 | 29 {% if options.count %} |
Chris@0 | 30 ({{ row.count }}) |
Chris@0 | 31 {% endif %} |
Chris@0 | 32 {{ options.inline ? '</span>' : '</div>' }} |
Chris@0 | 33 {% endfor %} |