Skip to content

Commit a13d6f7

Browse files
Fix bug preventing "no submissions" message to be shown in some cases
1 parent 53aedb2 commit a13d6f7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cms/server/contest/templates/macro/submission.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@
6969
</tr>
7070
</thead>
7171
<tbody>
72-
{% if submissions|length == 0 %}
72+
{% set num_displayed = submissions|selectattr("official")|list|length if official else submissions|rejectattr("official")|list|length > 0 %}
73+
{% if num_displayed == 0 %}
7374
<tr>
7475
<td colspan="{{ num_cols }}" class="no_submissions">{% trans %}no submissions{% endtrans %}</td>
7576
</tr>

0 commit comments

Comments
 (0)