admin-block.html.twig 918 B

1234567891011121314151617181920212223242526272829303132
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for an administrative block.
  5. *
  6. * Available variables:
  7. * - block: An array of information about the block, including:
  8. * - show: A flag indicating if the block should be displayed.
  9. * - title: The block title.
  10. * - content: (optional) The content of the block.
  11. * - description: (optional) A description of the block.
  12. * (Description should only be output if content is not available).
  13. * - attributes: HTML attributes for the containing div element.
  14. *
  15. * @ingroup themeable
  16. */
  17. #}
  18. {%
  19. set classes = [
  20. 'panel',
  21. ]
  22. %}
  23. <div{{ attributes.addClass(classes) }}>
  24. {% if block.title %}
  25. <h3 class="panel__title">{{ block.title }}</h3>
  26. {% endif %}
  27. {% if block.content %}
  28. <div class="panel__content">{{ block.content }}</div>
  29. {% elseif block.description %}
  30. <div class="panel__description">{{ block.description }}</div>
  31. {% endif %}
  32. </div>