You are here

run_and_review.html.twig in Security Review 8

Default template for the Run & Review page.

Available variables:

  • checks: Array of check informations. A check information consists of:

    • result: The check's result (string).
    • message: The result message.
    • help_link: The link to the check's help page.
    • toggle_link: The toggle link for the check.
    • skipped: Whether the check is skipped.

File

templates/run_and_review.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default template for the Run & Review page.
  5. *
  6. * Available variables:
  7. * - checks: Array of check informations.
  8. * A check information consists of:
  9. * - result: The check's result (string).
  10. * - message: The result message.
  11. * - help_link: The link to the check's help page.
  12. * - toggle_link: The toggle link for the check.
  13. * - skipped: Whether the check is skipped.
  14. */
  15. #}
  16. <h3>
  17. {% trans %}
  18. Review results from last run {{ date }}
  19. {% endtrans %}
  20. </h3>
  21. <p>
  22. {% trans %}
  23. Here you can review the results from the last run of the checklist. Checks
  24. are not always perfectly correct in their procedure and result. You can keep
  25. a check from running by clicking the 'Skip' link beside it. You can run the
  26. checklist again by expanding the fieldset above.
  27. {% endtrans %}
  28. </p>
  29. <table class="security-review-run-and-review__table">
  30. <tbody>
  31. {% for check in checks %}
  32. {% set style = '' %}
  33. {% if check.result is defined %}
  34. {% set style = style ~ ' ' ~ check.result %}
  35. {% endif %}
  36. {% if check.skipped %}
  37. {% set style = style ~ ' skipped' %}
  38. {% endif %}
  39. <tr class="security-review-run-and-review__entry{{ style }}">
  40. <td class="security-review-run-and-review__entry-icon">
  41. {% if icons[check.result] is defined %}
  42. <img src="{{ icons[check.result] }}"/>
  43. {% endif %}
  44. </td>
  45. <td>{{ check.message }}</td>
  46. <td>{{ check.help_link }}</td>
  47. <td class="security-review-toggle-link">{{ check.toggle_link }}</td>
  48. </tr>
  49. {% endfor %}
  50. </tbody>
  51. </table>