Commit aa9139c6 authored by ibuler's avatar ibuler

分页显示

parent efbcacbe
......@@ -31,4 +31,5 @@ urlpatterns = patterns('',
(r'^chgKey/$', views.chgKey),
(r'^upFile/$', views.upFile),
(r'^downFile/$', views.downFile),
(r'^logView/$', views.logView),
)
......@@ -32,4 +32,19 @@
</table>
<!--<button class="btn btn-primary">删除</button>-->
</form>
<nav>
<ul class="pager">
{% if contacts.has_previous %}
<li><a href="?page={{ contacts.previous_page_number }}">上一页</a></li>
{% endif %}
<span class="current">
Page {{ contacts.number }} of {{ contacts.paginator.num_pages }}.
</span>
{% if contacts.has_next %}
<li><a href="?page={{ contacts.next_page_number }}">下一页</a></li>
{% endif %}
</ul>
</nav>
{% endblock %}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment