Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix missing finding_type table #2596

Merged
merged 5 commits into from
Mar 5, 2024
Merged
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
14 changes: 8 additions & 6 deletions rocky/reports/report_types/mail_report/report.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
</tbody>
</table>
</div>
{% if data.finding_types.measures %}
{% if data.finding_types %}
<div class="horizontal-scroll">
<table>
<caption class="visually-hidden">{% translate "Findings:" %}</caption>
Expand All @@ -36,11 +36,13 @@
</tr>
</thead>
<tbody>
{% for measure in data.finding_types.values %}
<tr>
<td>{{ measure.description }}</td>
<td>{{ measure.risk_severity }}</td>
</tr>
{% for values in data.finding_types.values %}
{% for finding_type in values %}
<tr>
<td>{{ finding_type.description }}</td>
<td>{{ finding_type.risk_severity }}</td>
</tr>
{% endfor %}
{% endfor %}
</tbody>
</table>
Expand Down