"Fossies" - the Fresh Open Source Software Archive

Member "drupal-8.9.9/core/themes/classy/templates/views/views-view-summary.html.twig" (18 Nov 2020, 937 Bytes) of package /linux/www/drupal-8.9.9.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 to display a list of summary lines.
    5  *
    6  * Available variables:
    7  * - rows: The rows contained in this view.
    8  *   Each row contains:
    9  *   - url: The summary link URL.
   10  *   - link: The summary link text.
   11  *   - count: The number of items under this grouping.
   12  *   - attributes: HTML attributes to apply to each row.
   13  *   - active: A flag indicating whether the row is active.
   14  * - options: Flags indicating how the summary should be displayed.
   15  *   This contains:
   16  *   - count: A flag indicating whether the count should be displayed.
   17  *
   18  * @see template_preprocess_views_view_summary()
   19  */
   20 #}
   21 <div class="item-list">
   22   <ul class="views-summary">
   23   {% for row in rows %}
   24     <li><a href="{{ row.url }}"{{ row.attributes.addClass(row.active ? 'is-active')|without('href') }}>{{ row.link }}</a>
   25       {% if options.count %}
   26         ({{ row.count }})
   27       {% endif %}
   28     </li>
   29   {% endfor %}
   30   </ul>
   31 </div>