Merge branch 'hohoTT-dev' into virusdefender-dev

* hohoTT-dev:
  改打开题目为当前窗口打开,并且去掉题目单页中的返回选项
  contest type 的表示类型修改为常量
  比赛描述居中,注意:后台写题目描述的时候无需空格,描述会自动居中,不然描述会偏离原来居中的方向。
This commit is contained in:
virusdefender
2015-09-11 20:37:15 +08:00
10 changed files with 74 additions and 56 deletions

View File

@@ -33,6 +33,6 @@
</tbody>
</table>
<hr>
<div>{{ contest.description|safe }}</div>
<div class="text-center">{{ contest.description|safe }}</div>
</div>
<p class="text-center"></p>

View File

@@ -8,9 +8,6 @@
<li role="presentation"><a
href="/contest/{{ contest_problem.contest.id }}/problem/{{ contest_problem.id }}/submissions/">我的提交</a>
</li>
<li role="presentation"><a
href="/contest/{{ contest_problem.contest.id }}/problems/">返回</a>
</li>
</ul>
<h2 class="text-center">{{ contest_problem.title }}</h2>

View File

@@ -57,10 +57,10 @@
</th>
<th scope="row">
<a href="/contest/{{ item.contest.id }}/problem/{{ item.id }}/" target="_blank">{{ item.sort_index }}</a>
<a href="/contest/{{ item.contest.id }}/problem/{{ item.id }}/">{{ item.sort_index }}</a>
</th>
<td>
<a href="/contest/{{ item.contest.id }}/problem/{{ item.id }}/" target="_blank">{{ item.title }}</a>
<a href="/contest/{{ item.contest.id }}/problem/{{ item.id }}/">{{ item.title }}</a>
</td>
<td>{{ item|accepted_radio }}</td>
</tr>

View File

@@ -9,9 +9,6 @@
<li role="presentation">
<a href="/problem/{{ problem.id }}/submissions/">我的提交</a>
</li>
<li role="presentation">
<a href="/problems/">返回</a>
</li>
</ul>
{% include "oj/problem/_problem_header.html" %}

View File

@@ -29,8 +29,8 @@
{% for item in problems %}
<tr>
<th><span class="glyphicon glyphicon-ok ac-flag"></span></th>
<th scope="row"><a href="/problem/{{ item.id }}/" target="_blank">{{ item.id }}</a></th>
<td><a href="/problem/{{ item.id }}/" target="_blank">{{ item.title }}</a></td>
<th scope="row"><a href="/problem/{{ item.id }}/">{{ item.id }}</a></th>
<td><a href="/problem/{{ item.id }}/">{{ item.title }}</a></td>
<td>{{ item.difficulty }}</td>
<td>{{ item|accepted_radio }}</td>
</tr>