security.html.twig 868 B

1234567891011121314151617181920
  1. {% if result %}
  2. <div class="alert warning"> Security Scan complete: <strong>{{ result|length }} potential XSS issues found...</strong></div>
  3. <table>
  4. {% for route, results in result %}
  5. <tr>
  6. <td><i class="fa fa-file-text-o"></i> <a href="{{ base_url ~ '/pages' ~ route }}">{{ route }}</a></td>
  7. {% set results_string = [] %}
  8. {% for key, value in results %}
  9. {% set results_string = results_string|merge(['<span class="key">' ~ key ~ '</span>: <span class="value">' ~ value|titleize ~ '</span>']) %}
  10. {% endfor %}
  11. <td class="double">{{ results_string|join(', ')|raw }}</td>
  12. </tr>
  13. {% endfor %}
  14. </table>
  15. {% else %}
  16. <div class="alert info">Security Scan complete: <strong>No issues found...</strong></div>
  17. {% endif %}