Skip to content

Commit 403e1db

Browse files
committed
Fix templates
Signed-off-by: Tushar Goel <[email protected]>
1 parent 481e04c commit 403e1db

File tree

1 file changed

+94
-94
lines changed

1 file changed

+94
-94
lines changed

vulnerabilities/templates/vulnerability_details.html

Lines changed: 94 additions & 94 deletions
Original file line numberDiff line numberDiff line change
@@ -503,106 +503,106 @@
503503
</div>
504504

505505

506-
<div class="tab-div content" data-content="epss">
507506
{% for severity in severities %}
508-
{% if severity.scoring_system == 'epss' %}
509-
<div class="has-text-weight-bold tab-nested-div ml-1 mb-1 mt-1">
510-
Exploit Prediction Scoring System
511-
</div>
512-
<table class="table vcio-table width-100-pct mt-2">
513-
<tbody>
514-
<tr>
515-
<td class="two-col-left">
516-
<span class="has-tooltip-multiline has-tooltip-black has-tooltip-arrow has-tooltip-text-left"
517-
data-tooltip="the percentile of the current score, the proportion of all scored vulnerabilities with the same or a lower EPSS score">
518-
Percentile
519-
</span>
520-
</td>
521-
<td class="two-col-right">{{ severity.scoring_elements }}</td>
522-
</tr>
523-
524-
<tr>
525-
<td class="two-col-left">
526-
<span class="has-tooltip-multiline has-tooltip-black has-tooltip-arrow has-tooltip-text-left"
527-
data-tooltip="the EPSS score representing the probability [0-1] of exploitation in the wild in the next 30 days (following score publication)">
528-
EPSS score
529-
</span>
530-
</td>
531-
<td class="two-col-right">{{ severity.value }}</td>
532-
</tr>
533-
534-
{% if severity.published_at %}
535-
<tr>
536-
<td class="two-col-left">
537-
<span
538-
class="has-tooltip-multiline has-tooltip-black has-tooltip-arrow has-tooltip-text-left"
539-
data-tooltip="When was the time we fetched epss">
540-
Published at
541-
</span>
542-
</td>
543-
<td class="two-col-right">{{ severity.published_at }}</td>
544-
</tr>
545-
{% endif %}
546-
547-
</tbody>
548-
</table>
507+
{% if severity.scoring_system == 'epss' %}
508+
<div class="tab-div content" data-content="epss">
509+
<div class="has-text-weight-bold tab-nested-div ml-1 mb-1 mt-1">
510+
Exploit Prediction Scoring System
549511
</div>
550-
{% endif %}
551-
{% empty %}
552-
<tr>
553-
<td>
554-
There are no EPSS available.
555-
</td>
556-
</tr>
557-
{% endfor %}
558-
</div>
559-
</div>
512+
<table class="table vcio-table width-100-pct mt-2">
513+
<tbody>
514+
<tr>
515+
<td class="two-col-left">
516+
<span class="has-tooltip-multiline has-tooltip-black has-tooltip-arrow has-tooltip-text-left"
517+
data-tooltip="the percentile of the current score, the proportion of all scored vulnerabilities with the same or a lower EPSS score">
518+
Percentile
519+
</span>
520+
</td>
521+
<td class="two-col-right">{{ severity.scoring_elements }}</td>
522+
</tr>
560523

561-
<div class="tab-div content" data-content="history">
562-
<table class="table is-bordered is-striped is-narrow is-hoverable is-fullwidth">
563-
<thead>
564-
<tr>
565-
<th>
566-
<span
567-
class="has-tooltip-multiline has-tooltip-black has-tooltip-arrow has-tooltip-text-left"
568-
data-tooltip="The date that the vulnerability was imported (collected) or improved.">
569-
Date </span>
570-
</th>
571-
<th>
572-
<span
573-
class="has-tooltip-multiline has-tooltip-black has-tooltip-arrow has-tooltip-text-left"
574-
data-tooltip="The process that created or updated the vulnerability."> Actor </span>
575-
</th>
576-
<th> <span
577-
class="has-tooltip-multiline has-tooltip-black has-tooltip-arrow has-tooltip-text-left"
578-
data-tooltip="Imported or Improved"> Action </span> </th>
579-
<th> <span
580-
class="has-tooltip-multiline has-tooltip-black has-tooltip-arrow has-tooltip-text-left"
581-
data-tooltip="The public service that published the advisory or related information."> Source </span> </th>
582-
<th> <span
524+
<tr>
525+
<td class="two-col-left">
526+
<span class="has-tooltip-multiline has-tooltip-black has-tooltip-arrow has-tooltip-text-left"
527+
data-tooltip="the EPSS score representing the probability [0-1] of exploitation in the wild in the next 30 days (following score publication)">
528+
EPSS score
529+
</span>
530+
</td>
531+
<td class="two-col-right">{{ severity.value }}</td>
532+
</tr>
533+
534+
{% if severity.published_at %}
535+
<tr>
536+
<td class="two-col-left">
537+
<span
583538
class="has-tooltip-multiline has-tooltip-black has-tooltip-arrow has-tooltip-text-left"
584-
data-tooltip="The version of VulnerableCode that performed the action. ">
585-
VulnerableCode Version
586-
</span> </th>
587-
</tr>
588-
</thead>
589-
{% for log in history %}
590-
<tr>
591-
<td class="is-break-word wrap-strings">{{ log.get_iso_time }}</td>
592-
<td class="is-break-word wrap-strings">{{ log.actor_name }}</td>
593-
<td class="is-break-word wrap-strings">{{ log.get_action_type_label }}</td>
594-
<td class="is-break-word wrap-strings"> <a href="{{ log.source_url }}" target="_blank">{{log.source_url }}</a></td>
595-
<td class="is-break-word wrap-strings"> {{ log.software_version }} </td>
596-
</tr>
597-
{% empty %}
598-
<tr>
599-
<td colspan="5">
600-
There are no relevant records.
601-
</td>
602-
</tr>
603-
{% endfor %}
539+
data-tooltip="When was the time we fetched epss">
540+
Published at
541+
</span>
542+
</td>
543+
<td class="two-col-right">{{ severity.published_at }}</td>
544+
</tr>
545+
{% endif %}
546+
547+
</tbody>
604548
</table>
605549
</div>
550+
{% endif %}
551+
{% empty %}
552+
<div class="tab-div content" data-content="epss">
553+
<tr>
554+
<td>
555+
There are no EPSS available.
556+
</td>
557+
</tr>
558+
</div>
559+
{% endfor %}
560+
561+
<div class="tab-div content" data-content="history">
562+
<table class="table is-bordered is-striped is-narrow is-hoverable is-fullwidth">
563+
<thead>
564+
<tr>
565+
<th>
566+
<span
567+
class="has-tooltip-multiline has-tooltip-black has-tooltip-arrow has-tooltip-text-left"
568+
data-tooltip="The date that the vulnerability was imported (collected) or improved.">
569+
Date </span>
570+
</th>
571+
<th>
572+
<span
573+
class="has-tooltip-multiline has-tooltip-black has-tooltip-arrow has-tooltip-text-left"
574+
data-tooltip="The process that created or updated the vulnerability."> Actor </span>
575+
</th>
576+
<th> <span
577+
class="has-tooltip-multiline has-tooltip-black has-tooltip-arrow has-tooltip-text-left"
578+
data-tooltip="Imported or Improved"> Action </span> </th>
579+
<th> <span
580+
class="has-tooltip-multiline has-tooltip-black has-tooltip-arrow has-tooltip-text-left"
581+
data-tooltip="The public service that published the advisory or related information."> Source </span> </th>
582+
<th> <span
583+
class="has-tooltip-multiline has-tooltip-black has-tooltip-arrow has-tooltip-text-left"
584+
data-tooltip="The version of VulnerableCode that performed the action. ">
585+
VulnerableCode Version
586+
</span> </th>
587+
</tr>
588+
</thead>
589+
{% for log in history %}
590+
<tr>
591+
<td class="is-break-word wrap-strings">{{ log.get_iso_time }}</td>
592+
<td class="is-break-word wrap-strings">{{ log.actor_name }}</td>
593+
<td class="is-break-word wrap-strings">{{ log.get_action_type_label }}</td>
594+
<td class="is-break-word wrap-strings"> <a href="{{ log.source_url }}" target="_blank">{{log.source_url }}</a></td>
595+
<td class="is-break-word wrap-strings"> {{ log.software_version }} </td>
596+
</tr>
597+
{% empty %}
598+
<tr>
599+
<td colspan="5">
600+
There are no relevant records.
601+
</td>
602+
</tr>
603+
{% endfor %}
604+
</table>
605+
</div>
606606
</div>
607607
</div>
608608
</section>

0 commit comments

Comments
 (0)