From 1a7c6d7369840a112fb785cf554430069d8a1e2d Mon Sep 17 00:00:00 2001 From: eatradish Date: Mon, 11 Apr 2022 12:38:55 +0800 Subject: templetes/paginator: new --- templates/home.html | 5 ++- templates/paginator.html | 101 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 104 insertions(+), 2 deletions(-) create mode 100644 templates/paginator.html (limited to 'templates') diff --git a/templates/home.html b/templates/home.html index 25c3032..a8dc282 100644 --- a/templates/home.html +++ b/templates/home.html @@ -24,6 +24,7 @@ {% endfor %} -{{ paginator.next }} +{# {{ paginator.next }} #} -{% endblock %} +{% include "paginator.html" %} +{% endblock %} \ No newline at end of file diff --git a/templates/paginator.html b/templates/paginator.html new file mode 100644 index 0000000..4b091f7 --- /dev/null +++ b/templates/paginator.html @@ -0,0 +1,101 @@ + +{% if paginator.total_pages > 1 %} + + + +{% endif %} \ No newline at end of file -- cgit v1.2.3