2022-06-01 05:28:56 +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>
|
2022-11-22 04:05:35 +00:00
|
|
|
{% 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>
|
2022-12-20 08:24:24 +00:00
|
|
|
<td class="lightbox-submissions-time case-{{'AC' if cur_subtask.points == cur_subtask.total else ('TLE' if cur_subtask.points == '???' else 'WA')}}">
|
2022-11-22 04:05:35 +00:00
|
|
|
{{ cur_subtask.points }} / {{ cur_subtask.total }}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
({{ cur_subtask.contest_time }})
|
|
|
|
</td>
|
2022-12-29 04:50:26 +00:00
|
|
|
{% if cur_subtask.submission %}
|
2022-11-22 04:05:35 +00:00
|
|
|
{% set can_view = submission_layout(cur_subtask.submission, profile_id, request.user, editable_problem_ids, completed_problem_ids) %}
|
|
|
|
{% if can_view %}
|
|
|
|
<td>
|
|
|
|
→ <a href="{{url('submission_status', cur_subtask.submission.id)}}">{{ cur_subtask.submission.id }}</a>
|
|
|
|
</td>
|
|
|
|
{% endif %}
|
2022-12-29 04:50:26 +00:00
|
|
|
{% endif %}
|
2022-11-22 04:05:35 +00:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
<tr>
|
|
|
|
<td class="lightbox-submissions-time">
|
|
|
|
<b>{{_('Total')}}:</b>
|
|
|
|
</td>
|
2022-12-20 08:24:24 +00:00
|
|
|
<td style="border-top: 1px solid" class="case-{{'AC' if points == total else 'WA'}}">
|
2022-11-22 04:05:35 +00:00
|
|
|
{{ points }} / {{ total }}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody></table>
|
|
|
|
<hr>
|
|
|
|
{% endif %}
|
2022-12-20 21:24:34 +00:00
|
|
|
{% if submissions %}
|
2022-06-01 05:28:56 +00:00
|
|
|
<table class="lightbox-submissions"><tbody>
|
|
|
|
{% for submission in submissions %}
|
|
|
|
<tr>
|
|
|
|
{% set can_view = submission_layout(submission, profile_id, request.user, editable_problem_ids, completed_problem_ids) %}
|
2022-06-01 20:18:52 +00:00
|
|
|
<td class="lightbox-submissions-time">
|
2022-06-01 05:28:56 +00:00
|
|
|
{% if submission.contest_time %}
|
|
|
|
{{submission.contest_time}}
|
|
|
|
{% else %}
|
2022-06-01 05:47:22 +00:00
|
|
|
{% trans time=submission.date|date(_("g:i a d/m/Y")) %}
|
2022-06-01 05:28:56 +00:00
|
|
|
{{ time }}
|
|
|
|
{% endtrans %}
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
2022-11-22 04:05:35 +00:00
|
|
|
<td class="case-{{submission.result}}">{{submission.display_point}}</td>
|
|
|
|
<td class="case-{{submission.result}}">({{submission.short_status}})</td>
|
2022-06-01 05:28:56 +00:00
|
|
|
<td>
|
2022-06-01 05:53:15 +00:00
|
|
|
{% if submission.contest.is_pretest %}
|
|
|
|
[{{_('pretests')}}]
|
|
|
|
{% else %}
|
|
|
|
[{{_('main tests')}}]
|
|
|
|
{% endif %}
|
2022-06-01 05:28:56 +00:00
|
|
|
</td>
|
|
|
|
{% if can_view %}
|
|
|
|
<td>
|
|
|
|
→ <a href="{{url('submission_status', submission.id)}}">{{submission.id}}</a>
|
|
|
|
</td>
|
|
|
|
{% endif %}
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
2022-12-20 21:24:34 +00:00
|
|
|
</tbody></table>
|
|
|
|
{% endif %}
|