修复正在进行图标不显示的问题,修改view里contest_problem状态的变量名,使更确切,添加dealing-falg的css

This commit is contained in:
sxw@401 2015-09-05 20:17:15 +08:00
parent 81bd998d8d
commit 1f50cd0751
3 changed files with 12 additions and 5 deletions

View File

@ -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.ac = 0
item.state = 2
else:
item.state = 0
# 右侧的公告列表
announcements = Announcement.objects.filter(is_global=True, visible=True).order_by("-create_time")

View File

@ -73,6 +73,10 @@ li.list-group-item {
color: green;
}
.dealing-flag {
color: yellow;
}
.CodeMirror{
min-height: 250px;
_height:250px;

View File

@ -43,11 +43,11 @@
<th>
<span class="glyphicon
{% if item.ac %}
{% ifequal item.ac 1%}
{% if item.state %}
{% ifequal item.state 1%}
glyphicon-ok ac-flag
{% else %}
glyphicon-arrow-right ac-flag
glyphicon-arrow-right dealing-flag
{% endifequal %}
{% endif %}