修改题目列表和首页的样式
This commit is contained in:
@@ -87,4 +87,8 @@ li.list-group-item {
|
|||||||
position: relative;
|
position: relative;
|
||||||
outline: none;
|
outline: none;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.contest-tab{
|
||||||
|
margin-bottom: 5px;
|
||||||
}
|
}
|
||||||
@@ -2,18 +2,31 @@
|
|||||||
{% block body %}
|
{% block body %}
|
||||||
{% load problem %}
|
{% load problem %}
|
||||||
<div class="container main">
|
<div class="container main">
|
||||||
|
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
<div class="col-lg-12 contest-tab">
|
||||||
|
|
||||||
|
<ul class="nav nav-tabs nav-tabs-google">
|
||||||
|
<li role="presentation">
|
||||||
|
<a href="/contest/{{ contest.id }}/">比赛详情</a>
|
||||||
|
</li>
|
||||||
|
<li role="presentation" class="active">
|
||||||
|
<a href="/contest/{{ contest.id }}/problems/">题目</a>
|
||||||
|
</li>
|
||||||
|
<li role="presentation">
|
||||||
|
<a href="/contest/{{ contest.id }}/submissions/">提交</a>
|
||||||
|
</li>
|
||||||
|
<li role="presentation">
|
||||||
|
<a href="/contest/{{ contest.id }}/rank/">排名</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="col-lg-9">
|
<div class="col-lg-9">
|
||||||
<div class="row">
|
|
||||||
<div class="right">
|
|
||||||
<form class="form-inline" method="get">
|
|
||||||
<div class="form-group-sm">
|
|
||||||
<input name="keyword" class="form-control" placeholder="请输入关键词">
|
|
||||||
<input type="submit" value="搜索" class="btn btn-primary">
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div>
|
<div>
|
||||||
<table class="table table-striped">
|
<table class="table table-striped">
|
||||||
<thead>
|
<thead>
|
||||||
@@ -28,8 +41,11 @@
|
|||||||
{% for item in contest_problems %}
|
{% for item in contest_problems %}
|
||||||
<tr>
|
<tr>
|
||||||
<th><span class="glyphicon glyphicon-ok ac-flag"></span></th>
|
<th><span class="glyphicon glyphicon-ok ac-flag"></span></th>
|
||||||
<th scope="row"><a href="/contest/{{ item.contest.id }}/problem/{{ item.id }}/">{{ item.sort_index }}</a></th>
|
<th scope="row"><a
|
||||||
<td><a href="/contest/{{ item.contest.id }}/problem/{{ item.id }}/">{{ item.title }}</a></td>
|
href="/contest/{{ item.contest.id }}/problem/{{ item.id }}/">{{ item.sort_index }}</a>
|
||||||
|
</th>
|
||||||
|
<td><a href="/contest/{{ item.contest.id }}/problem/{{ item.id }}/">{{ item.title }}</a>
|
||||||
|
</td>
|
||||||
<td>{{ item|accepted_radio }}</td>
|
<td>{{ item|accepted_radio }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
@@ -51,10 +67,11 @@
|
|||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-lg-3">
|
<div class="col-lg-3">
|
||||||
{% include "oj/announcement/_announcement_panel.html" %}
|
{% include "oj/announcement/_announcement_panel.html" %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@@ -90,7 +90,7 @@
|
|||||||
<body>
|
<body>
|
||||||
<div id="header">
|
<div id="header">
|
||||||
<span id="name">qduoj</span>
|
<span id="name">qduoj</span>
|
||||||
<a href="/problems/">题目</a> <a href="#">比赛</a> <a href="#">小组</a>
|
<a href="/problems/">题目</a> <a href="/contests/">比赛</a> <a href="#">小组</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="fullpage">
|
<div id="fullpage">
|
||||||
|
|||||||
Reference in New Issue
Block a user