优化题目难度的选择编辑和前台显示;修复时间限制不统一的问题

This commit is contained in:
virusdefender
2015-09-12 18:34:24 +08:00
parent 354bb0302a
commit ee9951abf1
5 changed files with 35 additions and 13 deletions

View File

@@ -31,7 +31,16 @@
<th><span class="glyphicon glyphicon-ok ac-flag"></span></th>
<th scope="row"><a href="/problem/{{ item.id }}/">{{ item.id }}</a></th>
<td><a href="/problem/{{ item.id }}/">{{ item.title }}</a></td>
<td>{{ item.difficulty }}</td>
<td>
{% ifequal item.difficulty 1 %}
简单
{% else %}
{% ifequal item.difficulty 2 %}
中等
{% else %}
{% endifequal %}
{% endifequal %}</td>
<td>{{ item|accepted_radio }}</td>
</tr>
{% endfor %}
@@ -65,10 +74,11 @@
</div>
<ul class="list-group">
{% for item in tags %}
<li class="list-group-item problem-tag" onclick="location.href='/problems/?tag={{ item.name }}'">
<span class="badge">{{ item.problem_number }}</span>
{{ item.name }}
</li>
<li class="list-group-item problem-tag"
onclick="location.href='/problems/?tag={{ item.name }}'">
<span class="badge">{{ item.problem_number }}</span>
{{ item.name }}
</li>
{% endfor %}
</ul>
</div>