Skip to content

Commit

Permalink
Only display the contest on the submission page if it is not the curr…
Browse files Browse the repository at this point in the history
…ently selected contest.

The page has **a lot** of information, so we should be removing
duplicate info where we can. This was suggested by Michael.
  • Loading branch information
meisterT committed Mar 22, 2024
1 parent 6db24fe commit 113c18b
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions webapp/templates/jury/submission.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -158,13 +158,15 @@
</span>
{% endif %}

<span>
<i class="fas fa-trophy" title="Contest:"></i>
<a href="{{ path('jury_contest', {'contestId': submission.contest.cid}) }}">
{{ submission.contest.shortname }}
{{ submission.contest | entityIdBadge('c') }}
</a>
</span>
{% if current_contest.cid != submission.contest.cid %}
<span>
<i class="fas fa-trophy" title="Contest:"></i>
<a href="{{ path('jury_contest', {'contestId': submission.contest.cid}) }}">
{{ submission.contest.shortname }}
{{ submission.contest | entityIdBadge('c') }}
</a>
</span>
{% endif %}

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

0 comments on commit 113c18b

Please sign in to comment.