Mercurial > hg > isophonics-drupal-site
annotate core/themes/seven/templates/admin-block-content.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 * Seven's theme implementation for the content of an administrative block. |
Chris@0 | 5 * |
Chris@0 | 6 * Uses unordered list markup in both compact and extended modes. |
Chris@0 | 7 * |
Chris@0 | 8 * Available variables: |
Chris@0 | 9 * - content: List of administrative menu items. Each menu item contains: |
Chris@0 | 10 * - url: Path to the admin section. |
Chris@0 | 11 * - title: Short name of the section. |
Chris@0 | 12 * - description: Description of the administrative menu item. |
Chris@0 | 13 * - attributes: HTML attributes to be added to the element. |
Chris@0 | 14 * - compact: Boolean indicating whether compact mode is turned on or not. |
Chris@0 | 15 * |
Chris@0 | 16 * @see template_preprocess_admin_block_content() |
Chris@0 | 17 * @see seven_preprocess_admin_block_content() |
Chris@0 | 18 */ |
Chris@0 | 19 #} |
Chris@0 | 20 {% |
Chris@0 | 21 set classes = [ |
Chris@0 | 22 'admin-list', |
Chris@0 | 23 compact ? 'compact', |
Chris@0 | 24 ] |
Chris@0 | 25 %} |
Chris@0 | 26 {% if content %} |
Chris@0 | 27 <ul{{ attributes.addClass(classes) }}> |
Chris@0 | 28 {% for item in content %} |
Chris@0 | 29 <li><a href="{{ item.url }}"><span class="label">{{ item.title }}</span><div class="description">{{ item.description }}</div></a></li> |
Chris@0 | 30 {% endfor %} |
Chris@0 | 31 </ul> |
Chris@0 | 32 {% endif %} |