annotate core/themes/stable/templates/admin/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 * Theme override 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 #}
Chris@0 17 {%
Chris@0 18 set classes = [
Chris@0 19 'list-group',
Chris@0 20 compact ? 'compact',
Chris@0 21 ]
Chris@0 22 %}
Chris@0 23 {% if content %}
Chris@0 24 <dl{{ attributes.addClass(classes) }}>
Chris@0 25 {% for item in content %}
Chris@0 26 <dt class="list-group__link">{{ item.link }}</dt>
Chris@0 27 {% if item.description %}
Chris@0 28 <dd class="list-group__description">{{ item.description }}</dd>
Chris@0 29 {% endif %}
Chris@0 30 {% endfor %}
Chris@0 31 </dl>
Chris@0 32 {% endif %}