修改rank页面时间格式 hh:mm:ss,修改rank页面时间格式 hh:mm:ss,ContestSubmission中时间以秒计

This commit is contained in:
sxw@401
2015-09-13 21:31:38 +08:00
parent 34f886d990
commit 86c70eb8bd
4 changed files with 22 additions and 11 deletions

View File

@@ -47,12 +47,10 @@
<th scope="row">{{ forloop.counter }}</th>
<td>{{ item.username }}</td>
<td>{{ item.total_ac }} / {{ item.total_submit }}</td>
<td>{% if item.total_time %}{{ item.total_time }} min{% else %}--{% endif %}</td>
<td>{% if item.total_time %}{{ item.total_time }}{% else %}--{% endif %}</td>
{% for problem in item.problems %}
<td class="{% if problem %}{% if problem.ac %}{% if problem.first_achieve %}first-achieved{% else %}alert-success{% endif %}{% else %}alert-danger{% endif %}{% endif %}">
{% if problem.ac %}
{{ problem.ac_time }}min
{% endif %}
{% if problem.ac %}{{ problem.ac_time }}{% endif %}
{% if problem.failed_number %}
(-{{ problem.failed_number }})
{% endif %}