Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions vulnerabilities/templates/vulnerability.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ <h3>References:</h3>
<tr>
<th> Reference ID </th>
<th> URL </th>
<th> Severity </th>
<th> Scoring System </th>
</tr>
{% for ref in object_list %}
<tr>
Expand All @@ -38,6 +40,22 @@ <h3>References:</h3>
{% if ref.url %}
<td><a href="{{ ref.url }}">{{ref.url}}</a></td>

{% else %}
<td>-</td>

{% endif %}

{% if ref %}
<td> {{severity.value}} </td>

{% else %}
<td>-</td>

{% endif %}

{% if ref %}
<td> {{severity.scoring_system}} </td>

{% else %}
<td>-</td>

Expand Down
1 change: 1 addition & 0 deletions vulnerabilities/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ class VulnerabilityDetails(ListView):
def get_context_data(self, **kwargs):
context = super(VulnerabilityDetails, self).get_context_data(**kwargs)
context["vulnerability"] = models.Vulnerability.objects.get(id=self.kwargs["pk"])
context["severity"] = models.VulnerabilitySeverity.objects.get(id=self.kwargs["pk"])
context["enable_curation"] = ENABLE_CURATION
return context

Expand Down