Update vuln found event email to support multiple vulns notification

This commit is contained in:
Joseph Schorr 2017-03-10 11:29:37 -05:00
parent 3813d0d23d
commit 9a2507724f

View file

@ -1,4 +1,8 @@
{% if event_data.vulnerabilities %}
{{ event_data.vulnerabilities|length }} vulnerabilities were detected in tags
{% else %}
A <a href="{{ event_data.vulnerability.link }}">{{ event_data.vulnerability.priority }} vulnerability</a> ({{ event_data.vulnerability.id }}) was detected in tags
{% endif %}
{{ 'tags' | icon_image }}
{% for tag in event_data.tags[0:3] %}{%if loop.index > 1 %}, {% endif %}{{ (event_data.repository, tag) | repository_tag_reference }}{% endfor %} {% if event_data.tags|length > 3 %}(and {{ event_data.tags|length - 3 }} more) {% endif %} in
repository {{ event_data.repository | repository_reference }}
repository {{ event_data.repository | repository_reference }}