Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / themes / stable / templates / admin / views-ui-views-listing-table.html.twig
1 {#
2 /**
3  * @file
4  * Theme override for views listing table.
5  *
6  * Available variables:
7  * - headers: Contains table headers.
8  * - rows: Contains multiple rows. Each row contains:
9  *   - view_name: The human-readable name of the view.
10  *   - machine_name: Machine name of the view.
11  *   - description: The description of the view.
12  *   - displays: List of displays attached to the view.
13  *   - operations: List of available operations.
14  *
15  * @see template_preprocess_views_ui_views_listing_table()
16  */
17 #}
18 <table{{ attributes.addClass('responsive-enabled') }}>
19   <thead>
20     <tr>
21       {% for header in headers %}
22         <th{{ header.attributes }}>{{ header.data }}</th>
23       {% endfor %}
24     </tr>
25   </thead>
26   <tbody>
27     {% for row in rows %}
28       <tr{{ row.attributes }}>
29         <td class="views-ui-view-name">
30           <h3 data-drupal-selector="views-table-filter-text-source">{{ row.data.view_name.data }}</h3>
31         </td>
32         <td class="views-ui-view-machine-name" data-drupal-selector="views-table-filter-text-source">
33           {{ row.data.machine_name.data }}
34         </td>
35         <td class="views-ui-view-description" data-drupal-selector="views-table-filter-text-source">
36           {{ row.data.description.data }}
37         </td>
38         <td class="views-ui-view-displays">
39           {{ row.data.displays.data }}
40         </td>
41         <td class="views-ui-view-operations">
42           {{ row.data.operations.data }}
43         </td>
44       </tr>
45     {% endfor %}
46   </tbody>
47 </table>