X-Git-Url: https://git.mdrn.pl/django-pagination.git/blobdiff_plain/86caf150984733eb5a0bb07af26cd8fc0a8d8496..abf535d21fd19b257e5d6fecfd60e470cc12de7f:/fnp_django_pagination/test_project/example/templates/example/two_lists.html diff --git a/fnp_django_pagination/test_project/example/templates/example/two_lists.html b/fnp_django_pagination/test_project/example/templates/example/two_lists.html new file mode 100644 index 0000000..cdb44d9 --- /dev/null +++ b/fnp_django_pagination/test_project/example/templates/example/two_lists.html @@ -0,0 +1,21 @@ +{% extends "django_testproject/base.html" %} +{% load pagination_tags %} + + +{% block content %} +

This page demonstrates how autopaginate behaves under certain conditions

+

Below you can see two lists.

+

First list has {{ first_item_list|length }} items.

+{% autopaginate first_item_list 5 %} +{% for item in first_item_list %} +

{{item}}

+{% endfor %} +{% paginate using "pagination/custom_pagination.html" %} + +

Second list has {{ second_item_list|length}} items.

+{% autopaginate second_item_list 5 %} +{% paginate %} +{% for item in second_item_list %} +

{{item}}

+{% endfor %} +{% endblock %}