Add contest submissions page
This commit is contained in:
parent
66f2184b39
commit
a63afd6f3c
9 changed files with 162 additions and 98 deletions
|
@ -19,9 +19,8 @@
|
|||
{{ make_tab_item('ranking', 'fa fa-bar-chart', url('contest_ranking', contest.key), _('Rankings')) }}
|
||||
{% if request.user.is_authenticated and can_access %}
|
||||
{{ make_tab_item('participation', 'fa fa-users', url('contest_participation_own', contest.key), _('Participation')) }}
|
||||
{{ make_tab_item('submissions', 'fa fa-code', url('contest_submissions', contest.key), _('Submissions')) }}
|
||||
{% endif %}
|
||||
{% else %}
|
||||
{{ make_tab_item('ranking', 'fa fa-bar-chart', None, _('Hidden Rankings')) }}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% if request.user.is_superuser and contest_has_hidden_subtasks %}
|
||||
|
|
4
templates/contest/submissions.html
Normal file
4
templates/contest/submissions.html
Normal file
|
@ -0,0 +1,4 @@
|
|||
{% extends "submission/list.html" %}
|
||||
{% block left_sidebar %}
|
||||
{% include "contest/contest-tabs.html" %}
|
||||
{% endblock %}
|
|
@ -55,7 +55,7 @@
|
|||
{{ submission.language.short_display_name }}
|
||||
</div>
|
||||
<span class="time">{{ relative_time(submission.date, format=_("d/m/Y"))}}</span>
|
||||
{% if not request.in_contest_mode and submission.contest_object_id %}
|
||||
{% if not hide_contest_in_row and submission.contest_object_id %}
|
||||
<a href="{{ url('contest_view', submission.contest_object.key) }}"
|
||||
class="submission-contest">
|
||||
<i title="{{ submission.contest_object.name }}" class="fa fa-dot-circle-o"></i>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue