Drupal 8.0.0 beta 12. More info: https://www.drupal.org/node/2514176
This commit is contained in:
commit
9921556621
13277 changed files with 1459781 additions and 0 deletions
32
core/themes/seven/templates/admin-block-content.html.twig
Normal file
32
core/themes/seven/templates/admin-block-content.html.twig
Normal file
|
@ -0,0 +1,32 @@
|
|||
{#
|
||||
/**
|
||||
* @file
|
||||
* Seven's theme implementation for the content of an administrative block.
|
||||
*
|
||||
* Uses unordered list markup in both compact and extended modes.
|
||||
*
|
||||
* Available variables:
|
||||
* - content: List of administrative menu items. Each menu item contains:
|
||||
* - url: Path to the admin section.
|
||||
* - title: Short name of the section.
|
||||
* - description: Description of the administrative menu item.
|
||||
* - attributes: HTML attributes to be added to the element.
|
||||
* - compact: Boolean indicating whether compact mode is turned on or not.
|
||||
*
|
||||
* @see template_preprocess_admin_block_content()
|
||||
* @see seven_preprocess_admin_block_content()
|
||||
*/
|
||||
#}
|
||||
{%
|
||||
set classes = [
|
||||
'admin-list',
|
||||
compact ? 'compact',
|
||||
]
|
||||
%}
|
||||
{% if content %}
|
||||
<ul{{ attributes.addClass(classes) }}>
|
||||
{% for item in content %}
|
||||
<li><a href="{{ item.url }}"><span class="label">{{ item.title }}</span><div class="description">{{ item.description }}</div></a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
Reference in a new issue