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 23f3dfa commit 5c7e91dCopy full SHA for 5c7e91d
cms/server/contest/templates/macro/submission.html
@@ -79,7 +79,8 @@
79
</tr>
80
</thead>
81
<tbody>
82
- {% if submissions|length == 0 %}
+ {% set num_displayed = (submissions|selectattr("official")|list|length if official else submissions|rejectattr("official")|list|length) > 0 %}
83
+ {% if num_displayed == 0 %}
84
<tr>
85
<td colspan="{{ num_cols }}" class="no_submissions">{% trans %}no submissions{% endtrans %}</td>
86
0 commit comments