aboutsummaryrefslogtreecommitdiffstats
path: root/docs/theme
diff options
context:
space:
mode:
authorDougal Matthews2014-10-29 21:03:00 +0000
committerDougal Matthews2014-11-25 12:43:42 +0000
commit3c49b9fe4648d6fb291f0d34bf2e9ef4b72d45be (patch)
tree3e388c864c3ab4c0229535fdba93cfb8e6b08d83 /docs/theme
parent49a493f61f4d5b4447d139d189d78995e65231b2 (diff)
downloaddjango-rest-framework-3c49b9fe4648d6fb291f0d34bf2e9ef4b72d45be.tar.bz2
Add next and previous page.
Diffstat (limited to 'docs/theme')
-rw-r--r--docs/theme/base.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/theme/base.html b/docs/theme/base.html
index 7ca7de14..0f876cc1 100644
--- a/docs/theme/base.html
+++ b/docs/theme/base.html
@@ -57,8 +57,8 @@ a.fusion-poweredby {
<div class="navbar-inner">
<div class="container-fluid">
<a class="repo-link btn btn-primary btn-small" href="https://github.com/tomchristie/django-rest-framework/tree/master">GitHub</a>
- <a class="repo-link btn btn-inverse btn-small {{ next_url_disabled }}" href="{{ next_url }}">Next <i class="icon-arrow-right icon-white"></i></a>
- <a class="repo-link btn btn-inverse btn-small {{ prev_url_disabled }}" href="{{ prev_url }}"><i class="icon-arrow-left icon-white"></i> Previous</a>
+ <a class="repo-link btn btn-inverse btn-small {% if not next_page %}disabled{% endif %}" href="{{ next_page.url }}">Next <i class="icon-arrow-right icon-white"></i></a>
+ <a class="repo-link btn btn-inverse btn-small {% if not previous_page %}disabled{% endif %}" href="{{ previous_page.url }}"><i class="icon-arrow-left icon-white"></i> Previous</a>
<a class="repo-link btn btn-inverse btn-small" href="#searchModal" data-toggle="modal"><i class="icon-search icon-white"></i> Search</a>
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>