wiki-grav/plugins/admin/themes/grav/templates/reports/security.html.twig

21 lines
868 B
Twig
Raw Normal View History

{% if result %}
<div class="alert warning"> Security Scan complete: <strong>{{ result|length }} potential XSS issues found...</strong></div>
<table>
{% for route, results in result %}
<tr>
<td><i class="fa fa-file-text-o"></i> <a href="{{ base_url ~ '/pages' ~ route }}">{{ route }}</a></td>
{% set results_string = [] %}
{% for key, value in results %}
{% set results_string = results_string|merge(['<span class="key">' ~ key ~ '</span>: <span class="value">' ~ value|titleize ~ '</span>']) %}
{% endfor %}
<td class="double">{{ results_string|join(', ')|raw }}</td>
</tr>
{% endfor %}
</table>
{% else %}
<div class="alert info">Security Scan complete: <strong>No issues found...</strong></div>
{% endif %}