update contest_list.html 用户未登录时就隐藏对可以参加的比赛的筛选,因为这没有意义
This commit is contained in:
@@ -48,12 +48,13 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
{% if request.user.is_authenticated %}
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label>仅显示当前可参加的比赛
|
<label>仅显示当前可参加的比赛
|
||||||
<input id="join" type="checkbox" {% if join %}checked{% endif %} onchange="if(this.checked){location.href='/contests/?join=True'}else{location.href='/contests/'}">
|
<input id="join" type="checkbox" {% if join %}checked{% endif %} onchange="if(this.checked){location.href='/contests/?join=True'}else{location.href='/contests/'}">
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
{% endif %}
|
||||||
<nav>
|
<nav>
|
||||||
<ul class="pager">
|
<ul class="pager">
|
||||||
{% if previous_page %}
|
{% if previous_page %}
|
||||||
|
|||||||
Reference in New Issue
Block a user