Including security review as a submodule - with patched for Yaffs.
[yaffs-website] / web / modules / contrib / security_review / templates / run_and_review.html.twig
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
17 <h3>
18     {% trans %}
19     Review results from last run {{ date }}
20     {% endtrans %}
21 </h3>
22 <p>
23     {% trans %}
24     Here you can review the results from the last run of the checklist. Checks
25     are not always perfectly correct in their procedure and result. You can keep
26     a check from running by clicking the 'Skip' link beside it. You can run the
27     checklist again by expanding the fieldset above.
28     {% endtrans %}
29 </p>
30 <table class="security-review-run-and-review__table">
31     <tbody>
32     {% for check in checks %}
33         {% set style = '' %}
34         {% if check.result is defined %}
35             {% set style = style ~ ' ' ~ check.result %}
36         {% endif %}
37         {% if check.skipped %}
38             {% set style = style ~ ' skipped' %}
39         {% endif %}
40         <tr class="security-review-run-and-review__entry{{ style }}">
41             <td class="security-review-run-and-review__entry-icon">
42                 {% if icons[check.result] is defined %}
43                     <img src="{{ icons[check.result] }}"/>
44                 {% endif %}
45             </td>
46             <td>{{ check.message }}</td>
47             <td>{{ check.help_link }}</td>
48             <td class="security-review-toggle-link">{{ check.toggle_link }}</td>
49         </tr>
50     {% endfor %}
51     </tbody>
52 </table>