From bd014b5c40af09bbf16b8a225646f421e13fc6cd Mon Sep 17 00:00:00 2001 From: "sxw@401" Date: Tue, 8 Sep 2015 11:38:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9A=E5=88=9A=E4=B8=8D=E5=B0=8F=E5=BF=83?= =?UTF-8?q?=E6=8A=8A=E4=B8=A4=E4=B8=AA=E6=96=87=E4=BB=B6=E7=B2=98=E4=B8=80?= =?UTF-8?q?=E8=B5=B7=E4=BA=86=EF=BC=8C=E5=8E=9F=E6=9D=A5=E7=9A=84=E5=BF=98?= =?UTF-8?q?=E6=B8=85=E4=BA=86=E3=80=82=E3=80=82=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../oj/contest/submissions_list_admin.html | 86 ++----------------- 1 file changed, 6 insertions(+), 80 deletions(-) diff --git a/template/src/oj/contest/submissions_list_admin.html b/template/src/oj/contest/submissions_list_admin.html index f65f141..5f1b719 100644 --- a/template/src/oj/contest/submissions_list_admin.html +++ b/template/src/oj/contest/submissions_list_admin.html @@ -68,8 +68,12 @@ {% for item in submissions %} - + {% ifequal item.user_id request.user.id %} + {{ forloop.counter |add:start_id }} + {% else %} + {{ forloop.counter |add:start_id }} + {% endifequal %} {{ item.title }} @@ -111,82 +115,4 @@ -{% endblock %} -{% extends 'oj_base.html' %} - -{% block body %} - - {% load submission %} - {% load user %} -
-
- -
- - - - - - - - - - - - - {% if submissions %} - - {% for item in submissions %} - - - - - - - - - - {% endfor %} - - {% else %} -

本场比赛还没有提交记录!

- {% endif %} -
#用户提交时间结果运行时间语言
- {{ forloop.counter |add:start_id }}{{ item.user_id|get_username }}{{ item.create_time }}{{ item.result|translate_result }} - {% if item.accepted_answer_time %} - {{ item.accepted_answer_time }}ms - {% else %} - -- - {% endif %} - - {{ item.language|translate_language }} -
- -
-{% endblock %} +{% endblock %} \ No newline at end of file