Skip to content

Commit 5570672

Browse files
committed
fix rendering of advisory_id as link
1 parent 67541a0 commit 5570672

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

scancodeio/static/main.css

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -391,9 +391,6 @@ progress.file-upload::before {
391391
#message-list th#column-severity {
392392
min-width: 110px;
393393
}
394-
th#column-vulnerability_id {
395-
min-width: 220px;
396-
}
397394
th#column-summary {
398395
width: 40%;
399396
}

scanpipe/templates/scanpipe/includes/vulnerability_id.html

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1-
{{ vulnerability.advisory_id }}
2-
1+
{% if vulnerability.resource_url %}
2+
<a href="{{ vulnerability.resource_url }}" target="_blank">{{ vulnerability.advisory_id }}
3+
<i class="fa-solid fa-up-right-from-square mini"></i>
4+
</a>
5+
{% else %}
6+
{{ vulnerability.advisory_id }}
7+
{% endif %}
38
<ul class="mb-0">
49
{% for alias in vulnerability.aliases %}
510
<li>

0 commit comments

Comments
 (0)