Skip to content

Commit

Permalink
Display a bug icon if package has discovered_vulnerabilities #101
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Druez <tdruez@nexb.com>
  • Loading branch information
tdruez committed Oct 31, 2022
1 parent f39e176 commit 9e39ad9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scanpipe/templates/scanpipe/package_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@
<tr class="break-word">
<td style="min-width: 500px;" title="{{ package.package_uid }}">
<a href="{{ package.get_absolute_url }}">{{ package.package_url }}</a>
{% if package.extra_data.discovered_vulnerabilities %}
<a href="{{ package.get_absolute_url }}#extra_data">
<i class="fas fa-bug fa-sm has-text-danger" title="Vulnerabilities"></i>
</a>
{% endif %}
</td>
<td style="min-width: 300px; max-width: 400px;">
{{ package.license_expression|linebreaksbr }}
Expand Down

0 comments on commit 9e39ad9

Please sign in to comment.