Skip to content

Commit 9e39ad9

Browse files
committed
Display a bug icon if package has discovered_vulnerabilities #101
Signed-off-by: Thomas Druez <[email protected]>
1 parent f39e176 commit 9e39ad9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scanpipe/templates/scanpipe/package_list.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@
2424
<tr class="break-word">
2525
<td style="min-width: 500px;" title="{{ package.package_uid }}">
2626
<a href="{{ package.get_absolute_url }}">{{ package.package_url }}</a>
27+
{% if package.extra_data.discovered_vulnerabilities %}
28+
<a href="{{ package.get_absolute_url }}#extra_data">
29+
<i class="fas fa-bug fa-sm has-text-danger" title="Vulnerabilities"></i>
30+
</a>
31+
{% endif %}
2732
</td>
2833
<td style="min-width: 300px; max-width: 400px;">
2934
{{ package.license_expression|linebreaksbr }}

0 commit comments

Comments
 (0)