annotate core/themes/seven/templates/block-content-add-list.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 to display a list of custom block types.
Chris@0 5 *
Chris@0 6 * Displays the list of available custom block types for creation.
Chris@0 7 *
Chris@0 8 * Available variables:
Chris@0 9 * - types: A collection of all the available custom block types.
Chris@0 10 * Each type contains:
Chris@0 11 * - url: A link to add a block of this type.
Chris@0 12 * - description: A description of this custom block type.
Chris@0 13 * - label: The title of the custom block type.
Chris@0 14 * - path: A path for the link to add a block of this type.
Chris@0 15 *
Chris@0 16 * @see template_preprocess_block_content_add_list()
Chris@0 17 * @see seven_preprocess_block_content_add_list()
Chris@0 18 */
Chris@0 19 #}
Chris@0 20 <ul class="admin-list">
Chris@0 21 {% for type in types %}
Chris@0 22 <li class="clearfix">
Chris@0 23 <a href="{{ type.url }}"><span class="label">{{ type.label }}</span><div class="description">{{ type.description }}</div></a>
Chris@0 24 </li>
Chris@0 25 {% endfor %}
Chris@0 26 </ul>