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>
|
|
|
|
<td class="lightbox-submissions-time case-{{'AC' if cur_subtask.points == cur_subtask.total else 'WA'}}">
|
|
|
|
{{ cur_subtask.points }} / {{ cur_subtask.total }}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
({{ cur_subtask.contest_time }})
|
|
|
|
</td>
|
|
|
|
{% 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 %}
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
<tr>
|
|
|
|
<td class="lightbox-submissions-time">
|
|
|
|
<b>{{_('Total')}}:</b>
|
|
|
|
</td>
|
|
|
|
<td style="border-top: 1px black solid" class="case-{{'AC' if points == total else 'WA'}}">
|
|
|
|
{{ points }} / {{ total }}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody></table>
|
|
|
|
<hr>
|
|
|
|
{% endif %}
|
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 %}
|
|
|
|
</tbody></table>
|