We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53aedb2 commit a13d6f7Copy full SHA for a13d6f7
cms/server/contest/templates/macro/submission.html
@@ -69,7 +69,8 @@
69
</tr>
70
</thead>
71
<tbody>
72
- {% if submissions|length == 0 %}
+ {% set num_displayed = submissions|selectattr("official")|list|length if official else submissions|rejectattr("official")|list|length > 0 %}
73
+ {% if num_displayed == 0 %}
74
<tr>
75
<td colspan="{{ num_cols }}" class="no_submissions">{% trans %}no submissions{% endtrans %}</td>
76
0 commit comments