status-report-counter.html.twig 791 B

1234567891011121314151617181920212223242526
  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 themable
  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>