mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2024-09-21 08:23:20 +00:00
修复正在进行图标不显示的问题,修改view里contest_problem状态的变量名,使更确切,添加dealing-falg的css
This commit is contained in:
parent
81bd998d8d
commit
1f50cd0751
@ -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")
|
||||
|
@ -73,6 +73,10 @@ li.list-group-item {
|
||||
color: green;
|
||||
}
|
||||
|
||||
.dealing-flag {
|
||||
color: yellow;
|
||||
}
|
||||
|
||||
.CodeMirror{
|
||||
min-height: 250px;
|
||||
_height:250px;
|
||||
|
@ -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 %}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user