修复比赛排名页面宽度问题

This commit is contained in:
virusdefender 2015-09-13 13:01:17 +08:00
parent e6c9916a12
commit 7f70d46809

View File

@ -2,8 +2,8 @@
{% block body %}
{% load submission %}
<div class="container main">
<div class="col-lg-12 contest-tab">
<ul class="nav nav-tabs nav-tabs-google">
<ul class="nav nav-tabs nav-tabs-google contest-tab">
<li role="presentation">
<a href="/contest/{{ contest.id }}/">比赛详情</a>
</li>
@ -17,9 +17,9 @@
<a href="/contest/{{ contest.id }}/rank/">排名</a>
</li>
</ul>
</div>
<div class="row">
<div class="col-lg-12">
{% if result %}
<table class="table table-bordered">
<thead>
@ -50,20 +50,22 @@
{% endfor %}
</tbody>
</table>
<input type="checkbox" id="auto-refresh" {% if auto_refresh %}checked{% endif %} onchange="if(this.checked){location.href='?auto_refresh=true'}else{location.href=location.href.split('?')[0]}"> 自动刷新
<input type="checkbox" id="auto-refresh" {% if auto_refresh %}checked{% endif %}
onchange="if(this.checked){location.href='?auto_refresh=true'}else{location.href=location.href.split('?')[0]}">
自动刷新
{% else %}
<p>还没有结果</p>
{% endif %}
</div>
</div>
</div>
{% endblock %}
{% block js_block %}
{% if auto_refresh %}
{% if auto_refresh %}
<script>
setTimeout(function(){
setTimeout(function () {
location.reload();
}, 5000);
</script>