aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/templates
diff options
context:
space:
mode:
authorTom Christie2015-01-22 17:25:12 +0000
committerTom Christie2015-01-22 17:25:12 +0000
commit43d983fae82ab23ca94f52deb29e938eb2a40e88 (patch)
tree2466e74009d87b6698206b59f5b4681bcb6d66b0 /rest_framework/templates
parent0822c9e55820f8e4737329e38abc2e21718af9e5 (diff)
downloaddjango-rest-framework-43d983fae82ab23ca94f52deb29e938eb2a40e88.tar.bz2
Add paging controls
Diffstat (limited to 'rest_framework/templates')
-rw-r--r--rest_framework/templates/rest_framework/pagination/previous_and_next.html12
1 files changed, 12 insertions, 0 deletions
diff --git a/rest_framework/templates/rest_framework/pagination/previous_and_next.html b/rest_framework/templates/rest_framework/pagination/previous_and_next.html
new file mode 100644
index 00000000..eacbfff4
--- /dev/null
+++ b/rest_framework/templates/rest_framework/pagination/previous_and_next.html
@@ -0,0 +1,12 @@
+<ul class="pager">
+{% if previous_url %}
+ <li class="previous"><a href="{{ previous_url }}">&laquo; Previous</a></li>
+{% else %}
+ <li class="previous disabled"><a href="#">&laquo; Previous</a></li>
+{% endif %}
+{% if next_url %}
+ <li class="next"><a href="{{ next_url }}">Next &raquo;</a></li>
+{% else %}
+ <li class="next disabled"><a href="#">Next &raquo;</li>
+{% endif %}
+</ul>