Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
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
12 changes: 6 additions & 6 deletions vulnerabilities/static/css/custom.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
.Site {
display: flex;
min-height: 100vh;
flex-direction: column;
}
display: flex;
min-height: 100vh;
flex-direction: column;
}

.Site-content {
flex: 1;
}
flex: 1;
}
61 changes: 44 additions & 17 deletions vulnerabilities/templates/vulnerability.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,33 +20,60 @@ <h3>Summary:</h3>

{% if object_list %}
<h3>References:</h3>
<table class="table is-bordered is-striped is-narrow is-hoverable is-fullwidth">
<tr>
<th> Reference ID </th>
<th> URL </th>
</tr>
{% for ref in object_list %}
<table class="table is-bordered is-striped is-narrow is-hoverable is-fullwidth">
<tr>
{% if ref.reference_id %}
<td>{{ref.reference_id}}</td>
<th> Reference ID </th>
<th> URL </th>
</tr>
{% for ref in object_list %}
<tr>
{% if ref.reference_id %}
<td>{{ref.reference_id}}</td>

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

{% endif %}

{% if ref.url %}
<td><a href="{{ ref.url }}">{{ref.url}}</a></td>

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

{% endif %}
{% endif %}
</tr>

{% if ref.url %}
<td><a href="{{ ref.url }}">{{ref.url}}</a></td>
{% endfor %}

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

{% endif %}
<h3>Severity</h3>
<table class="table is-bordered is-striped is-narrow is-hoverable is-fullwidth">
<tr>
<th> System </th>
<th> Score </th>
<th> Found At </th>
</tr>
{% for ref in object_list %}
{% for obj in ref.scores %}
<tr>
<td>{{obj.scoring_system}}</td>

<td>{{obj.value}}</td>

{% if ref.url %}
<td><a href="{{ ref.url }}">{{ref.url}}</a></td>

{% else %}
<td>{{ ref.reference_id }}</td>

{% endif %}
</tr>
{% endfor %}
{% endfor %}

</table>
</table>
{% endif %}
{% if enable_curation %}
<a class="button is-success" href = "{% url 'vulnerability_reference_create' vulnerability.pk %}">
Expand Down