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

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

View File

@ -2,25 +2,25 @@
{% block body %} {% block body %}
{% load submission %} {% load submission %}
<div class="container main"> <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"> <li role="presentation">
<a href="/contest/{{ contest.id }}/">比赛详情</a> <a href="/contest/{{ contest.id }}/">比赛详情</a>
</li> </li>
<li role="presentation"> <li role="presentation">
<a href="/contest/{{ contest.id }}/problems/">题目</a> <a href="/contest/{{ contest.id }}/problems/">题目</a>
</li> </li>
<li role="presentation"> <li role="presentation">
<a href="/contest/{{ contest.id }}/submissions/">提交</a> <a href="/contest/{{ contest.id }}/submissions/">提交</a>
</li> </li>
<li role="presentation" class="active"> <li role="presentation" class="active">
<a href="/contest/{{ contest.id }}/rank/">排名</a> <a href="/contest/{{ contest.id }}/rank/">排名</a>
</li> </li>
</ul> </ul>
</div>
<div class="row"> <div class="row">
<div class="col-lg-12">
{% if result %} {% if result %}
<table class="table table-bordered"> <table class="table table-bordered">
<thead> <thead>
<tr> <tr>
@ -50,22 +50,24 @@
{% endfor %} {% endfor %}
</tbody> </tbody>
</table> </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 %}
{% else %} onchange="if(this.checked){location.href='?auto_refresh=true'}else{location.href=location.href.split('?')[0]}">
<p>还没有结果</p> 自动刷新
{% endif %} {% else %}
</div> <p>还没有结果</p>
{% endif %}
</div> </div>
</div> </div>
{% endblock %} {% endblock %}
{% block js_block %} {% block js_block %}
{% if auto_refresh %} {% if auto_refresh %}
<script> <script>
setTimeout(function(){ setTimeout(function () {
location.reload(); location.reload();
}, 5000); }, 5000);
</script> </script>
{% endif %} {% endif %}
{% endblock %} {% endblock %}