You are here

prod-check-status-report.html.twig in Production check & Production monitor 8

Default theme implementation for the prod check status report.

Available variables:

  • requirements: Contains multiple requirement instances, sorted on category. 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

templates/prod-check-status-report.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for the prod check status report.
  5. *
  6. * Available variables:
  7. * - requirements: Contains multiple requirement instances, sorted on category.
  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_prod_check_status_report()
  16. *
  17. * @ingroup themeable
  18. */
  19. #}
  20. {% for category, requirements_per_category in requirements %}
  21. {% if requirements_per_category is not empty %}
  22. <h2>{{ attribute(categories, category).title }}</h2>
  23. {{ attribute(categories, category).description }}
  24. <table class="system-status-report">
  25. <thead>
  26. <tr class="visually-hidden">
  27. <th>{{ 'Status'|t }}</th>
  28. <th>{{ 'Component'|t }}</th>
  29. <th>{{ 'Details'|t }}</th>
  30. </tr>
  31. </thead>
  32. <tbody>
  33. {% for requirement in requirements_per_category %}
  34. {% if requirement.severity_status %}
  35. <tr class="system-status-report__entry color-{{ requirement.severity_status }}">
  36. {% else %}
  37. <tr>
  38. {% endif %}
  39. <td class="system-status-report__status-icon system-status-report__status-icon--{{ requirement.severity_status }}">
  40. <div title="{{ requirement.severity_title }}">
  41. <span class="visually-hidden">{{ requirement.severity_title }}</span>
  42. </div>
  43. </td>
  44. <td class="system-status-report__status-title">{{ requirement.title }}</td>
  45. <td>
  46. {{ requirement.value }}
  47. {% if requirement.description %}
  48. <div class="description">{{ requirement.description }}</div>
  49. {% endif %}
  50. </td>
  51. </tr>
  52. {% endfor %}
  53. </tbody>
  54. </table>
  55. {% endif %}
  56. {% endfor %}