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] = {
|
||||
"submission": None,
|
||||
"contest_time": nice_repr(
|
||||
self.contest_time(submission), "noday"
|
||||
),
|
||||
"contest_time": None,
|
||||
"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')}}">
|
||||
{{ cur_subtask.points }} / {{ cur_subtask.total }}
|
||||
</td>
|
||||
{% if cur_subtask.contest_time%}
|
||||
<td>
|
||||
({{ cur_subtask.contest_time }})
|
||||
</td>
|
||||
{% endif %}
|
||||
{% if cur_subtask.submission %}
|
||||
{% set can_view = submission_layout(cur_subtask.submission, profile_id, request.user, editable_problem_ids, completed_problem_ids) %}
|
||||
{% if can_view %}
|
||||
|
|
Loading…
Reference in a new issue