Skip to content

Commit aa966d9

Browse files
🐛 Fix Django template engagement_pdf_report #12201 (#12206)
1 parent 5b019b8 commit aa966d9

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

dojo/templates/dojo/engagement_pdf_report.html

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -110,15 +110,17 @@ <h5>
110110
<div class="panel panel-info endpoints table-responsive">
111111
{% colgroup endpoints into 2 cols as grouped_items %}
112112
<table class="table-striped table table table-condensed table-hover finding-endpoints">
113-
{% for row in grouped_items %}
114-
<tr>
115-
{% for item in row %}
116-
<td>{% if item %}<i class="fa-solid fa-circle"></i>
117-
{{ item }}{% endif %}
118-
</td>
119-
{% endfor %}
120-
</tr>
121-
{% endfor %}
113+
{% if grouped_items|length > 0 %}
114+
{% for row in grouped_items %}
115+
<tr>
116+
{% for item in row %}
117+
<td>{% if item %}<i class="fa-solid fa-circle"></i>
118+
{{ item }}{% endif %}
119+
</td>
120+
{% endfor %}
121+
</tr>
122+
{% endfor %}
123+
{% endif %}
122124
</table>
123125
</div>
124126
</div>

0 commit comments

Comments
 (0)