Mercurial > hg > isophonics-drupal-site
annotate core/modules/system/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 * Default theme implementation for the content of an administrative block. |
Chris@0 | 5 * |
Chris@0 | 6 * Available variables: |
Chris@0 | 7 * - content: A list containing information about the block. Each element |
Chris@0 | 8 * of the array represents an administrative menu item, and must at least |
Chris@0 | 9 * contain the keys 'title', 'link_path', and 'localized_options', which are |
Chris@0 | 10 * passed to l(). A 'description' key may also be provided. |
Chris@0 | 11 * - attributes: HTML attributes to be added to the element. |
Chris@0 | 12 * - compact: Boolean indicating whether compact mode is turned on or not. |
Chris@0 | 13 * |
Chris@0 | 14 * @see template_preprocess_admin_block_content() |
Chris@0 | 15 * |
Chris@0 | 16 * @ingroup themeable |
Chris@0 | 17 */ |
Chris@0 | 18 #} |
Chris@0 | 19 {% |
Chris@0 | 20 set classes = [ |
Chris@0 | 21 'list-group', |
Chris@0 | 22 compact ? 'compact', |
Chris@0 | 23 ] |
Chris@0 | 24 %} |
Chris@0 | 25 {% if content %} |
Chris@0 | 26 <dl{{ attributes.addClass(classes) }}> |
Chris@0 | 27 {% for item in content %} |
Chris@0 | 28 <dt class="list-group__link">{{ item.link }}</dt> |
Chris@0 | 29 {% if item.description %} |
Chris@0 | 30 <dd class="list-group__description">{{ item.description }}</dd> |
Chris@0 | 31 {% endif %} |
Chris@0 | 32 {% endfor %} |
Chris@0 | 33 </dl> |
Chris@0 | 34 {% endif %} |