From 1f50cd075182f1626698d3399187e91972549685 Mon Sep 17 00:00:00 2001 From: "sxw@401" Date: Sat, 5 Sep 2015 20:17:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=AD=A3=E5=9C=A8=E8=BF=9B?= =?UTF-8?q?=E8=A1=8C=E5=9B=BE=E6=A0=87=E4=B8=8D=E6=98=BE=E7=A4=BA=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98,=E4=BF=AE=E6=94=B9view=E9=87=8Ccontest=5Fpro?= =?UTF-8?q?blem=E7=8A=B6=E6=80=81=E7=9A=84=E5=8F=98=E9=87=8F=E5=90=8D,?= =?UTF-8?q?=E4=BD=BF=E6=9B=B4=E7=A1=AE=E5=88=87,=E6=B7=BB=E5=8A=A0dealing-?= =?UTF-8?q?falg=E7=9A=84css?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- contest/views.py | 7 +++++-- static/src/css/oj.css | 4 ++++ template/src/oj/contest/contest_problems_list.html | 6 +++--- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/contest/views.py b/contest/views.py index 2542198b..eaef55b1 100644 --- a/contest/views.py +++ b/contest/views.py @@ -328,9 +328,12 @@ def contest_problems_list_page(request, contest_id): state[item.problem_id] = item.ac for item in contest_problems: if item.id in state: - item.ac = state[item.id] + if state[item.id]: + item.state = 1 + else: + item.state = 2 else: - item.ac = 0 + item.state = 0 # 右侧的公告列表 announcements = Announcement.objects.filter(is_global=True, visible=True).order_by("-create_time") diff --git a/static/src/css/oj.css b/static/src/css/oj.css index e0998357..9e9af554 100644 --- a/static/src/css/oj.css +++ b/static/src/css/oj.css @@ -73,6 +73,10 @@ li.list-group-item { color: green; } +.dealing-flag { + color: yellow; +} + .CodeMirror{ min-height: 250px; _height:250px; diff --git a/template/src/oj/contest/contest_problems_list.html b/template/src/oj/contest/contest_problems_list.html index aae2a2b9..c7bdec08 100644 --- a/template/src/oj/contest/contest_problems_list.html +++ b/template/src/oj/contest/contest_problems_list.html @@ -43,11 +43,11 @@