status-report.html.twig 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. {#
  2. /**
  3. * @file
  4. * Theme override 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. #}
  18. <table class="system-status-report">
  19. <tbody>
  20. {% for requirement in requirements %}
  21. <tr class="system-status-report__entry system-status-report__entry--{{ requirement.severity_status }} color-{{ requirement.severity_status }}">
  22. {% if requirement.severity_status in ['warning', 'error'] %}
  23. <th class="system-status-report__status-title system-status-report__status-icon system-status-report__status-icon--{{ requirement.severity_status }}">
  24. <span class="visually-hidden">{{ requirement.severity_title }}</span>
  25. {% else %}
  26. <th class="system-status-report__status-title">
  27. {% endif %}
  28. {{ requirement.title }}
  29. </th>
  30. <td>
  31. {{ requirement.value }}
  32. {% if requirement.description %}
  33. <div class="description">{{ requirement.description }}</div>
  34. {% endif %}
  35. </td>
  36. </tr>
  37. {% endfor %}
  38. </tbody>
  39. </table>