Skip to content

Commit 113c18b

Browse files
committed
Only display the contest on the submission page if it is not the currently selected contest.
The page has **a lot** of information, so we should be removing duplicate info where we can. This was suggested by Michael.
1 parent 6db24fe commit 113c18b

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

webapp/templates/jury/submission.html.twig

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -158,13 +158,15 @@
158158
</span>
159159
{% endif %}
160160

161-
<span>
162-
<i class="fas fa-trophy" title="Contest:"></i>
163-
<a href="{{ path('jury_contest', {'contestId': submission.contest.cid}) }}">
164-
{{ submission.contest.shortname }}
165-
{{ submission.contest | entityIdBadge('c') }}
166-
</a>
167-
</span>
161+
{% if current_contest.cid != submission.contest.cid %}
162+
<span>
163+
<i class="fas fa-trophy" title="Contest:"></i>
164+
<a href="{{ path('jury_contest', {'contestId': submission.contest.cid}) }}">
165+
{{ submission.contest.shortname }}
166+
{{ submission.contest | entityIdBadge('c') }}
167+
</a>
168+
</span>
169+
{% endif %}
168170

169171
<span>
170172
<i class="fas fa-book-open" title="Problem:"></i>

0 commit comments

Comments
 (0)