You are here

status-report.html.twig in Zircon Profile 8.0

Default theme implementation for the status report.

Available variables:

  • requirements: Contains multiple requirement instances. Each requirement contains:

    • title: The title of the requirement.
    • value: (optional) The requirement's status.
    • description: (optional) The requirement's description.
    • severity_title: The title of the severity.
    • severity_status: Indicates the severity status.

File

core/modules/system/templates/status-report.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for the status report.
  5. *
  6. * Available variables:
  7. * - requirements: Contains multiple requirement instances.
  8. * Each requirement contains:
  9. * - title: The title of the requirement.
  10. * - value: (optional) The requirement's status.
  11. * - description: (optional) The requirement's description.
  12. * - severity_title: The title of the severity.
  13. * - severity_status: Indicates the severity status.
  14. *
  15. * @see template_preprocess_status_report()
  16. *
  17. * @ingroup themeable
  18. */
  19. #}
  20. <table class="system-status-report">
  21. <tbody>
  22. {% for requirement in requirements %}
  23. <tr class="system-status-report__entry system-status-report__entry--{{ requirement.severity_status }} color-{{ requirement.severity_status }}">
  24. {% if requirement.severity_status in ['warning', 'error'] %}
  25. <th class="system-status-report__status-title system-status-report__status-icon system-status-report__status-icon--{{ requirement.severity_status }}">
  26. <span class="visually-hidden">{{ requirement.severity_title }}</span>
  27. {% else %}
  28. <th class="system-status-report__status-title">
  29. {% endif %}
  30. {{ requirement.title }}
  31. </th>
  32. <td>
  33. {{ requirement.value }}
  34. {% if requirement.description %}
  35. <div class="description">{{ requirement.description }}</div>
  36. {% endif %}
  37. </td>
  38. </tr>
  39. {% endfor %}
  40. </tbody>
  41. </table>

Related topics