diff options
| author | Tom Christie | 2015-01-22 17:25:12 +0000 | 
|---|---|---|
| committer | Tom Christie | 2015-01-22 17:25:12 +0000 | 
| commit | 43d983fae82ab23ca94f52deb29e938eb2a40e88 (patch) | |
| tree | 2466e74009d87b6698206b59f5b4681bcb6d66b0 /rest_framework/templates | |
| parent | 0822c9e55820f8e4737329e38abc2e21718af9e5 (diff) | |
| download | django-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.html | 12 | 
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 }}">« Previous</a></li> +{% else %} +    <li class="previous disabled"><a href="#">« Previous</a></li> +{% endif %} +{% if next_url %} +    <li class="next"><a href="{{ next_url }}">Next »</a></li> +{% else %} +    <li class="next disabled"><a href="#">Next »</li> +{% endif %} +</ul> | 
