annotate core/themes/classy/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 4c8ae668cc8c
children
rev   line source
Chris@0 1 {#
Chris@0 2 /**
Chris@0 3 * @file
Chris@0 4 * Theme override for a 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 'view',
Chris@0 36 'view-' ~ id|clean_class,
Chris@0 37 'view-id-' ~ id,
Chris@0 38 'view-display-id-' ~ display_id,
Chris@0 39 dom_id ? 'js-view-dom-id-' ~ dom_id,
Chris@0 40 ]
Chris@0 41 %}
Chris@0 42 <div{{ attributes.addClass(classes) }}>
Chris@0 43 {{ title_prefix }}
Chris@0 44 {% if title %}
Chris@0 45 {{ title }}
Chris@0 46 {% endif %}
Chris@0 47 {{ title_suffix }}
Chris@0 48 {% if header %}
Chris@0 49 <div class="view-header">
Chris@0 50 {{ header }}
Chris@0 51 </div>
Chris@0 52 {% endif %}
Chris@0 53 {% if exposed %}
Chris@0 54 <div class="view-filters">
Chris@0 55 {{ exposed }}
Chris@0 56 </div>
Chris@0 57 {% endif %}
Chris@0 58 {% if attachment_before %}
Chris@0 59 <div class="attachment attachment-before">
Chris@0 60 {{ attachment_before }}
Chris@0 61 </div>
Chris@0 62 {% endif %}
Chris@0 63
Chris@0 64 {% if rows %}
Chris@0 65 <div class="view-content">
Chris@0 66 {{ rows }}
Chris@0 67 </div>
Chris@0 68 {% elseif empty %}
Chris@0 69 <div class="view-empty">
Chris@0 70 {{ empty }}
Chris@0 71 </div>
Chris@0 72 {% endif %}
Chris@0 73
Chris@0 74 {% if pager %}
Chris@0 75 {{ pager }}
Chris@0 76 {% endif %}
Chris@0 77 {% if attachment_after %}
Chris@0 78 <div class="attachment attachment-after">
Chris@0 79 {{ attachment_after }}
Chris@0 80 </div>
Chris@0 81 {% endif %}
Chris@0 82 {% if more %}
Chris@0 83 {{ more }}
Chris@0 84 {% endif %}
Chris@0 85 {% if footer %}
Chris@0 86 <div class="view-footer">
Chris@0 87 {{ footer }}
Chris@0 88 </div>
Chris@0 89 {% endif %}
Chris@0 90 {% if feed_icons %}
Chris@0 91 <div class="feed-icons">
Chris@0 92 {{ feed_icons }}
Chris@0 93 </div>
Chris@0 94 {% endif %}
Chris@0 95 </div>