Skip to content

Commit

Permalink
Fix templates
Browse files Browse the repository at this point in the history
Signed-off-by: Tushar Goel <[email protected]>
  • Loading branch information
TG1999 committed Jan 21, 2025
1 parent 481e04c commit 403e1db
Showing 1 changed file with 94 additions and 94 deletions.
188 changes: 94 additions & 94 deletions vulnerabilities/templates/vulnerability_details.html
Original file line number Diff line number Diff line change
Expand Up @@ -503,106 +503,106 @@
</div>


<div class="tab-div content" data-content="epss">
{% for severity in severities %}
{% if severity.scoring_system == 'epss' %}
<div class="has-text-weight-bold tab-nested-div ml-1 mb-1 mt-1">
Exploit Prediction Scoring System
</div>
<table class="table vcio-table width-100-pct mt-2">
<tbody>
<tr>
<td class="two-col-left">
<span class="has-tooltip-multiline has-tooltip-black has-tooltip-arrow has-tooltip-text-left"
data-tooltip="the percentile of the current score, the proportion of all scored vulnerabilities with the same or a lower EPSS score">
Percentile
</span>
</td>
<td class="two-col-right">{{ severity.scoring_elements }}</td>
</tr>

<tr>
<td class="two-col-left">
<span class="has-tooltip-multiline has-tooltip-black has-tooltip-arrow has-tooltip-text-left"
data-tooltip="the EPSS score representing the probability [0-1] of exploitation in the wild in the next 30 days (following score publication)">
EPSS score
</span>
</td>
<td class="two-col-right">{{ severity.value }}</td>
</tr>

{% if severity.published_at %}
<tr>
<td class="two-col-left">
<span
class="has-tooltip-multiline has-tooltip-black has-tooltip-arrow has-tooltip-text-left"
data-tooltip="When was the time we fetched epss">
Published at
</span>
</td>
<td class="two-col-right">{{ severity.published_at }}</td>
</tr>
{% endif %}

</tbody>
</table>
{% if severity.scoring_system == 'epss' %}
<div class="tab-div content" data-content="epss">
<div class="has-text-weight-bold tab-nested-div ml-1 mb-1 mt-1">
Exploit Prediction Scoring System
</div>
{% endif %}
{% empty %}
<tr>
<td>
There are no EPSS available.
</td>
</tr>
{% endfor %}
</div>
</div>
<table class="table vcio-table width-100-pct mt-2">
<tbody>
<tr>
<td class="two-col-left">
<span class="has-tooltip-multiline has-tooltip-black has-tooltip-arrow has-tooltip-text-left"
data-tooltip="the percentile of the current score, the proportion of all scored vulnerabilities with the same or a lower EPSS score">
Percentile
</span>
</td>
<td class="two-col-right">{{ severity.scoring_elements }}</td>
</tr>

<div class="tab-div content" data-content="history">
<table class="table is-bordered is-striped is-narrow is-hoverable is-fullwidth">
<thead>
<tr>
<th>
<span
class="has-tooltip-multiline has-tooltip-black has-tooltip-arrow has-tooltip-text-left"
data-tooltip="The date that the vulnerability was imported (collected) or improved.">
Date </span>
</th>
<th>
<span
class="has-tooltip-multiline has-tooltip-black has-tooltip-arrow has-tooltip-text-left"
data-tooltip="The process that created or updated the vulnerability."> Actor </span>
</th>
<th> <span
class="has-tooltip-multiline has-tooltip-black has-tooltip-arrow has-tooltip-text-left"
data-tooltip="Imported or Improved"> Action </span> </th>
<th> <span
class="has-tooltip-multiline has-tooltip-black has-tooltip-arrow has-tooltip-text-left"
data-tooltip="The public service that published the advisory or related information."> Source </span> </th>
<th> <span
<tr>
<td class="two-col-left">
<span class="has-tooltip-multiline has-tooltip-black has-tooltip-arrow has-tooltip-text-left"
data-tooltip="the EPSS score representing the probability [0-1] of exploitation in the wild in the next 30 days (following score publication)">
EPSS score
</span>
</td>
<td class="two-col-right">{{ severity.value }}</td>
</tr>

{% if severity.published_at %}
<tr>
<td class="two-col-left">
<span
class="has-tooltip-multiline has-tooltip-black has-tooltip-arrow has-tooltip-text-left"
data-tooltip="The version of VulnerableCode that performed the action. ">
VulnerableCode Version
</span> </th>
</tr>
</thead>
{% for log in history %}
<tr>
<td class="is-break-word wrap-strings">{{ log.get_iso_time }}</td>
<td class="is-break-word wrap-strings">{{ log.actor_name }}</td>
<td class="is-break-word wrap-strings">{{ log.get_action_type_label }}</td>
<td class="is-break-word wrap-strings"> <a href="{{ log.source_url }}" target="_blank">{{log.source_url }}</a></td>
<td class="is-break-word wrap-strings"> {{ log.software_version }} </td>
</tr>
{% empty %}
<tr>
<td colspan="5">
There are no relevant records.
</td>
</tr>
{% endfor %}
data-tooltip="When was the time we fetched epss">
Published at
</span>
</td>
<td class="two-col-right">{{ severity.published_at }}</td>
</tr>
{% endif %}

</tbody>
</table>
</div>
{% endif %}
{% empty %}
<div class="tab-div content" data-content="epss">
<tr>
<td>
There are no EPSS available.
</td>
</tr>
</div>
{% endfor %}

<div class="tab-div content" data-content="history">
<table class="table is-bordered is-striped is-narrow is-hoverable is-fullwidth">
<thead>
<tr>
<th>
<span
class="has-tooltip-multiline has-tooltip-black has-tooltip-arrow has-tooltip-text-left"
data-tooltip="The date that the vulnerability was imported (collected) or improved.">
Date </span>
</th>
<th>
<span
class="has-tooltip-multiline has-tooltip-black has-tooltip-arrow has-tooltip-text-left"
data-tooltip="The process that created or updated the vulnerability."> Actor </span>
</th>
<th> <span
class="has-tooltip-multiline has-tooltip-black has-tooltip-arrow has-tooltip-text-left"
data-tooltip="Imported or Improved"> Action </span> </th>
<th> <span
class="has-tooltip-multiline has-tooltip-black has-tooltip-arrow has-tooltip-text-left"
data-tooltip="The public service that published the advisory or related information."> Source </span> </th>
<th> <span
class="has-tooltip-multiline has-tooltip-black has-tooltip-arrow has-tooltip-text-left"
data-tooltip="The version of VulnerableCode that performed the action. ">
VulnerableCode Version
</span> </th>
</tr>
</thead>
{% for log in history %}
<tr>
<td class="is-break-word wrap-strings">{{ log.get_iso_time }}</td>
<td class="is-break-word wrap-strings">{{ log.actor_name }}</td>
<td class="is-break-word wrap-strings">{{ log.get_action_type_label }}</td>
<td class="is-break-word wrap-strings"> <a href="{{ log.source_url }}" target="_blank">{{log.source_url }}</a></td>
<td class="is-break-word wrap-strings"> {{ log.software_version }} </td>
</tr>
{% empty %}
<tr>
<td colspan="5">
There are no relevant records.
</td>
</tr>
{% endfor %}
</table>
</div>
</div>
</div>
</section>
Expand Down

0 comments on commit 403e1db

Please sign in to comment.