Hide submission time for frozen sub
This commit is contained in:
parent
5f7199669c
commit
45ada7995a
2 changed files with 4 additions and 4 deletions
|
@ -887,9 +887,7 @@ class UserContestSubmissionsAjax(UserContestSubmissions):
|
||||||
):
|
):
|
||||||
best_subtasks[subtask] = {
|
best_subtasks[subtask] = {
|
||||||
"submission": None,
|
"submission": None,
|
||||||
"contest_time": nice_repr(
|
"contest_time": None,
|
||||||
self.contest_time(submission), "noday"
|
|
||||||
),
|
|
||||||
"points": "???",
|
"points": "???",
|
||||||
"total": total_subtask_points,
|
"total": total_subtask_points,
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,9 +13,11 @@
|
||||||
<td class="lightbox-submissions-time case-{{'AC' if cur_subtask.points == cur_subtask.total else ('TLE' if cur_subtask.points == '???' else 'WA')}}">
|
<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 }}
|
{{ cur_subtask.points }} / {{ cur_subtask.total }}
|
||||||
</td>
|
</td>
|
||||||
|
{% if cur_subtask.contest_time%}
|
||||||
<td>
|
<td>
|
||||||
({{ cur_subtask.contest_time }})
|
({{ cur_subtask.contest_time }})
|
||||||
</td>
|
</td>
|
||||||
|
{% endif %}
|
||||||
{% if cur_subtask.submission %}
|
{% if cur_subtask.submission %}
|
||||||
{% set can_view = submission_layout(cur_subtask.submission, profile_id, request.user, editable_problem_ids, completed_problem_ids) %}
|
{% set can_view = submission_layout(cur_subtask.submission, profile_id, request.user, editable_problem_ids, completed_problem_ids) %}
|
||||||
{% if can_view %}
|
{% if can_view %}
|
||||||
|
|
Loading…
Add table
Reference in a new issue