Skip to content

Commit

Permalink
Merge branch 'main' into fix/stop_yielding_network_in_certain_normali…
Browse files Browse the repository at this point in the history
…zers
  • Loading branch information
ammar92 authored Sep 3, 2024
2 parents 0e70776 + 85d3227 commit cf269be
Showing 1 changed file with 53 additions and 55 deletions.
108 changes: 53 additions & 55 deletions rocky/reports/templates/partials/report_severity_totals_table.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,63 +3,61 @@
<section>
<div>
<h3>{% translate "Findings overview" %}</h3>
<div class="column-2">
<div class="horizontal-scroll">
<table>
<caption class="visually-hidden">{% translate "Total per severity overview" %}</caption>
<thead>
<div class="horizontal-scroll">
<table>
<caption class="visually-hidden">{% translate "Total per severity overview" %}</caption>
<thead>
<tr>
<th>{% translate "Risk level" %}</th>
<th class="number">{% translate "Findings" %}</th>
<th class="number">{% translate "Occurrences" %}</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<span class="critical">Critical</span>
</td>
<td class="number">{{ data.total_by_severity_per_finding_type.critical }}</td>
<td class="number">{{ data.total_by_severity.critical }}</td>
</tr>
<tr>
<td>
<span class="high">High</span>
</td>
<td class="number">{{ data.total_by_severity_per_finding_type.high }}</td>
<td class="number">{{ data.total_by_severity.high }}</td>
</tr>
<tr>
<td>
<span class="medium">Medium</span>
</td>
<td class="number">{{ data.total_by_severity_per_finding_type.medium }}</td>
<td class="number">{{ data.total_by_severity.medium }}</td>
</tr>
<tr>
<td>
<span class="low">Low</span>
</td>
<td class="number">{{ data.total_by_severity_per_finding_type.low }}</td>
<td class="number">{{ data.total_by_severity.low }}</td>
</tr>
<tr>
<td>
<span class="recommendation">Recommendation</span>
</td>
<td class="number">{{ data.total_by_severity_per_finding_type.recommendation }}</td>
<td class="number">{{ data.total_by_severity.recommendation }}</td>
</tr>
<tfoot>
<tr>
<th>{% translate "Risk level" %}</th>
<th class="number">{% translate "Findings" %}</th>
<th class="number">{% translate "Occurrences" %}</th>
<td>Total</td>
<td class="number">{{ data.total_finding_types }}</td>
<td class="number">{{ data.total_occurrences }}</td>
</tr>
</thead>
<tbody>
<tr>
<td>
<span class="critical">Critical</span>
</td>
<td class="number">{{ data.total_by_severity_per_finding_type.critical }}</td>
<td class="number">{{ data.total_by_severity.critical }}</td>
</tr>
<tr>
<td>
<span class="high">High</span>
</td>
<td class="number">{{ data.total_by_severity_per_finding_type.high }}</td>
<td class="number">{{ data.total_by_severity.high }}</td>
</tr>
<tr>
<td>
<span class="medium">Medium</span>
</td>
<td class="number">{{ data.total_by_severity_per_finding_type.medium }}</td>
<td class="number">{{ data.total_by_severity.medium }}</td>
</tr>
<tr>
<td>
<span class="low">Low</span>
</td>
<td class="number">{{ data.total_by_severity_per_finding_type.low }}</td>
<td class="number">{{ data.total_by_severity.low }}</td>
</tr>
<tr>
<td>
<span class="recommendation">Recommendation</span>
</td>
<td class="number">{{ data.total_by_severity_per_finding_type.recommendation }}</td>
<td class="number">{{ data.total_by_severity.recommendation }}</td>
</tr>
<tfoot>
<tr>
<td>Total</td>
<td class="number">{{ data.total_finding_types }}</td>
<td class="number">{{ data.total_occurrences }}</td>
</tr>
</tfoot>
</tbody>
</table>
</div>
</tfoot>
</tbody>
</table>
</div>
</div>
</section>

0 comments on commit cf269be

Please sign in to comment.