update contest_list.html 用户未登录时就隐藏对可以参加的比赛的筛选,因为这没有意义

This commit is contained in:
esp
2015-09-05 22:15:34 +08:00
parent b13f487d53
commit 51601c34d8

View File

@@ -48,12 +48,13 @@
{% endfor %}
</tbody>
</table>
{% if request.user.is_authenticated %}
<div class="form-group">
<label>仅显示当前可参加的比赛
<input id="join" type="checkbox" {% if join %}checked{% endif %} onchange="if(this.checked){location.href='/contests/?join=True'}else{location.href='/contests/'}">
</label>
</div>
{% endif %}
<nav>
<ul class="pager">
{% if previous_page %}