优化比赛的前台显示样式;删除公告,没有提交的时候不显示表格的表头;修改部分 typo

This commit is contained in:
virusdefender 2015-09-25 19:35:48 +08:00
parent 4ab1107627
commit 634bc82024
3 changed files with 8 additions and 9 deletions

View File

@ -29,7 +29,7 @@
</div> </div>
<div class="col-md-9 col-lg-9"> <div class="col-md-12 col-lg-12">
<div> <div>
<table class="table table-striped"> <table class="table table-striped">
<thead> <thead>
@ -60,9 +60,7 @@
</div> </div>
</div> </div>
<div class="col-md-3 col-lg-3">
{% include "oj/announcement/_announcement_panel.html" %}
</div>
</div> </div>
</div> </div>
{% endblock %} {% endblock %}

View File

@ -50,9 +50,9 @@
<tr> <tr>
<th scope="row">{{ forloop.counter }}</th> <th scope="row">{{ forloop.counter }}</th>
<td> <td>
{{ item.user.username }} {{ item.user__username }}
{% if show_real_name %} {% if show_real_name %}
{{ item.user.real_name }} {{ item.user__real_name }}
{% endif %} {% endif %}
</td> </td>
<td>{{ item.total_ac_number }} / {{ item.total_submission_number }}</td> <td>{{ item.total_ac_number }} / {{ item.total_submission_number }}</td>

View File

@ -24,8 +24,10 @@
</ul> </ul>
</div> </div>
<table class="table table-bordered"> <table class="table table-bordered">
{% if submissions %}
<thead> <thead>
<tr class="" success> <tr>
<th>#</th> <th>#</th>
<th>题目名称</th> <th>题目名称</th>
<th>用户</th> <th>用户</th>
@ -65,7 +67,6 @@
</th> </th>
</tr> </tr>
</thead> </thead>
{% if submissions %}
<tbody> <tbody>
{% for item in submissions %} {% for item in submissions %}
<tr> <tr>