NDOJ/templates/submission/user-ajax.html

34 lines
1.4 KiB
HTML
Raw Normal View History

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>
<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>
<td class="case-{{submission.result}}" style="margin-left: 1em">{{submission.display_point}}</td>
<td class="case-{{submission.result}}" style="margin-left: 1em">({{submission.short_status}})</td>
<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>