You are here

status-report-counter.html.twig in Drupal 10

Theme override for status report counter.

Available variables:

  • amount: The number shown on counter.
  • text: The text shown on counter.
  • severity: The severity of the counter.

File

core/themes/claro/templates/status-report-counter.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Theme override for status report counter.
  5. *
  6. * Available variables:
  7. * - amount: The number shown on counter.
  8. * - text: The text shown on counter.
  9. * - severity: The severity of the counter.
  10. *
  11. * @ingroup themeable
  12. */
  13. #}
  14. {%
  15. set classes = [
  16. 'system-status-counter',
  17. 'system-status-counter--' ~ severity,
  18. ]
  19. %}
  20. <span{{ attributes.addClass(classes) }}>
  21. <span class="system-status-counter__status-icon system-status-counter__status-icon--{{ severity }}"></span>
  22. <span class="system-status-counter__status-title">
  23. <span class="system-status-counter__title-count">{{ amount }} {{ text }}</span>
  24. <span class="system-status-counter__details"><a href="#{{ severity }}" ><span class="visually-hidden">{{ text }} </span>Details</a></span>
  25. </span>
  26. </span>

Related topics