annotate core/themes/stable/templates/views/views-view.html.twig @ 19:fa3358dc1485 tip

Add ndrum files
author Chris Cannam
date Wed, 28 Aug 2019 13:14:47 +0100
parents af1871eacc83
children
rev   line source
Chris@0 1 {#
Chris@0 2 /**
Chris@0 3 * @file
Chris@0 4 * Theme override for main view template.
Chris@0 5 *
Chris@0 6 * Available variables:
Chris@0 7 * - attributes: Remaining HTML attributes for the element.
Chris@0 8 * - css_name: A css-safe version of the view name.
Chris@0 9 * - css_class: The user-specified classes names, if any.
Chris@0 10 * - header: The optional header.
Chris@0 11 * - footer: The optional footer.
Chris@0 12 * - rows: The results of the view query, if any.
Chris@0 13 * - empty: The content to display if there are no rows.
Chris@0 14 * - pager: The optional pager next/prev links to display.
Chris@0 15 * - exposed: Exposed widget form/info to display.
Chris@0 16 * - feed_icons: Optional feed icons to display.
Chris@0 17 * - more: An optional link to the next page of results.
Chris@0 18 * - title: Title of the view, only used when displaying in the admin preview.
Chris@0 19 * - title_prefix: Additional output populated by modules, intended to be
Chris@0 20 * displayed in front of the view title.
Chris@0 21 * - title_suffix: Additional output populated by modules, intended to be
Chris@0 22 * displayed after the view title.
Chris@0 23 * - attachment_before: An optional attachment view to be displayed before the
Chris@0 24 * view content.
Chris@0 25 * - attachment_after: An optional attachment view to be displayed after the
Chris@0 26 * view content.
Chris@0 27 * - dom_id: Unique id for every view being printed to give unique class for
Chris@0 28 * Javascript.
Chris@0 29 *
Chris@0 30 * @see template_preprocess_views_view()
Chris@0 31 */
Chris@0 32 #}
Chris@0 33 {%
Chris@0 34 set classes = [
Chris@0 35 dom_id ? 'js-view-dom-id-' ~ dom_id,
Chris@0 36 ]
Chris@0 37 %}
Chris@0 38 <div{{ attributes.addClass(classes) }}>
Chris@0 39 {{ title_prefix }}
Chris@0 40 {{ title }}
Chris@0 41 {{ title_suffix }}
Chris@0 42
Chris@0 43 {% if header %}
Chris@0 44 <header>
Chris@0 45 {{ header }}
Chris@0 46 </header>
Chris@0 47 {% endif %}
Chris@0 48
Chris@0 49 {{ exposed }}
Chris@0 50 {{ attachment_before }}
Chris@0 51
Chris@18 52 {% if rows -%}
Chris@18 53 {{ rows }}
Chris@18 54 {% elseif empty -%}
Chris@18 55 {{ empty }}
Chris@18 56 {% endif %}
Chris@0 57 {{ pager }}
Chris@0 58
Chris@0 59 {{ attachment_after }}
Chris@0 60 {{ more }}
Chris@0 61
Chris@0 62 {% if footer %}
Chris@0 63 <footer>
Chris@0 64 {{ footer }}
Chris@0 65 </footer>
Chris@0 66 {% endif %}
Chris@0 67
Chris@0 68 {{ feed_icons }}
Chris@0 69 </div>