Skip to content

Commit 5c7e91d

Browse files
Fix bug preventing "no submissions" message to be shown in some cases
1 parent 23f3dfa commit 5c7e91d

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
@@ -79,7 +79,8 @@
7979
</tr>
8080
</thead>
8181
<tbody>
82-
{% if submissions|length == 0 %}
82+
{% set num_displayed = (submissions|selectattr("official")|list|length if official else submissions|rejectattr("official")|list|length) > 0 %}
83+
{% if num_displayed == 0 %}
8384
<tr>
8485
<td colspan="{{ num_cols }}" class="no_submissions">{% trans %}no submissions{% endtrans %}</td>
8586
</tr>

0 commit comments

Comments
 (0)