2023-01-27 23:11:10 +00:00
|
|
|
<h4>
|
|
|
|
{{_('Contest submissions of')}} {{link_user(profile)}} <a href="{{url('contest_user_submissions', contest.key, profile.user.username, problem.code)}}">#</a>
|
|
|
|
</h4>
|
|
|
|
<hr>
|
|
|
|
{% if best_subtasks and subtasks %}
|
|
|
|
<table class="lightbox-submissions"><tbody>
|
|
|
|
{% for subtask in subtasks %}
|
|
|
|
<tr>
|
|
|
|
{% set cur_subtask = best_subtasks[subtask] %}
|
|
|
|
<td class="lightbox-submissions-time">
|
|
|
|
<b>{{_('Subtask')}} {{subtask}}:</b>
|
|
|
|
</td>
|
|
|
|
<td class="lightbox-submissions-time case-{{'AC' if cur_subtask.points == cur_subtask.total else ('TLE' if cur_subtask.points == '???' else 'WA')}}">
|
|
|
|
{{ cur_subtask.points }} / {{ cur_subtask.total }}
|
|
|
|
</td>
|
|
|
|
{% if cur_subtask.contest_time %}
|
|
|
|
<td>
|
|
|
|
({{ cur_subtask.contest_time }})
|
|
|
|
</td>
|
|
|
|
{% endif %}
|
|
|
|
{% if cur_subtask.submission %}
|
2023-02-19 02:11:41 +00:00
|
|
|
{% set can_view = submission_layout(cur_subtask.submission, profile_id, request.user, editable_problem_ids, completed_problem_ids, tester_problem_ids) %}
|
2023-01-27 23:11:10 +00:00
|
|
|
{% if can_view %}
|
|
|
|
<td>
|
|
|
|
→ <a href="{{url('submission_status', cur_subtask.submission.id)}}">{{ cur_subtask.submission.id }}</a>
|
|
|
|
</td>
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
<tr>
|
|
|
|
<td class="lightbox-submissions-time">
|
|
|
|
<b>{{_('Total')}}:</b>
|
|
|
|
</td>
|
|
|
|
<td style="border-top: 1px solid" class="case-{{'AC' if points == total else 'WA'}}">
|
|
|
|
{{ points }} / {{ total }}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody></table>
|
|
|
|
<hr>
|
|
|
|
{% endif %}
|
|
|
|
{% if submissions %}
|
|
|
|
<table class="lightbox-submissions"><tbody>
|
|
|
|
{% for submission in submissions %}
|
|
|
|
<tr>
|
2023-02-19 02:11:41 +00:00
|
|
|
{% set can_view = submission_layout(submission, profile_id, request.user, editable_problem_ids, completed_problem_ids, tester_problem_ids) %}
|
2023-01-27 23:11:10 +00:00
|
|
|
<td class="lightbox-submissions-time">
|
|
|
|
{% if submission.contest_time %}
|
|
|
|
{{submission.contest_time}}
|
|
|
|
{% else %}
|
|
|
|
{% trans time=submission.date|date(_("g:i a d/m/Y")) %}
|
|
|
|
{{ time }}
|
|
|
|
{% endtrans %}
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
<td class="case-{{submission.result}}">{{submission.display_point}}</td>
|
|
|
|
<td class="case-{{submission.result}}">({{submission.short_status}})</td>
|
|
|
|
<td>
|
|
|
|
{% if submission.contest.is_pretest %}
|
|
|
|
[{{_('pretests')}}]
|
|
|
|
{% else %}
|
|
|
|
[{{_('main tests')}}]
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
{% if can_view %}
|
|
|
|
<td>
|
|
|
|
→ <a href="{{url('submission_status', submission.id)}}">{{submission.id}}</a>
|
|
|
|
</td>
|
|
|
|
{% endif %}
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody></table>
|
2022-12-20 21:24:34 +00:00
|
|
|
{% endif %}
|