aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/templates
diff options
context:
space:
mode:
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>