Skip to content

Commit

Permalink
feat(email notif): Scan_added - put findings to <details> (#10253)
Browse files Browse the repository at this point in the history
  • Loading branch information
kiblik authored Jun 21, 2024
1 parent 773488b commit d5f8925
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions dojo/templates/notifications/mail/scan_added.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -16,40 +16,48 @@
{% blocktranslate %}{{ finding_count }} findings have been updated for while a scan was uploaded{% endblocktranslate %}:
<a href="{{product_url|full_url}}">{{product}}</a> / <a href="{{engagement_url|full_url}}">{{ engagement.name }}</a> / <a href="{{ test_url|full_url }}">{{ test }}</a><br/>
<br/>
{% blocktranslate %}New findings{% endblocktranslate %}:<br/>
<details>
<summary>{% blocktranslate %}New findings{% endblocktranslate %} ({{ findings_new | length }})</summary><br/>
{% for finding in findings_new %}
{% url 'view_finding' finding.id as finding_url %}
<a href="{{ finding_url|full_url }}">{{ finding.title }}</a> ({{ finding.severity }})<br/>
{% empty %}
{% trans "None" %}<br/>
{% endfor %}
</details>
</p>
<p>
{% blocktranslate %}Reactivated findings{% endblocktranslate %}:<br/>
<details>
<summary>{% blocktranslate %}Reactivated findings{% endblocktranslate %} ({{ findings_reactivated | length }})</summary><br/>
{% for finding in findings_reactivated %}
{% url 'view_finding' finding.id as finding_url %}
<a href="{{ finding_url|full_url }}">{{ finding.title }}</a> ({{ finding.severity }})<br/>
{% empty %}
{% trans "None" %}<br/>
{% endfor %}
</details>
</p>
<p>
{% blocktranslate %}Closed findings{% endblocktranslate %}:<br/>
<details>
<summary>{% blocktranslate %}Closed findings{% endblocktranslate %} ({{ findings_mitigated | length }})</summary><br/>
{% for finding in findings_mitigated %}
{% url 'view_finding' finding.id as finding_url %}
<a href="{{ finding_url|full_url }}">{{ finding.title }}</a> ({{ finding.severity }})<br/>
{% empty %}
{% trans "None" %}<br/>
{% endfor %}
</details>
</p>
<p>
{% blocktranslate %}Untouched findings{% endblocktranslate %}:<br/>
<details>
<summary>{% blocktranslate %}Untouched findings{% endblocktranslate %} ({{ findings_untouched | length }})</summary><br/>
{% for finding in findings_untouched %}
{% url 'view_finding' finding.id as finding_url %}
<a href="{{ finding_url|full_url }}">{{ finding.title }}</a> ({{ finding.severity }})<br/>
{% empty %}
{% trans "None" %}<br/>
{% endfor %}
</details>
</p>
<br/><br/>
{% trans "Kind regards" %},
Expand Down

0 comments on commit d5f8925

Please sign in to comment.