From b5147ee59b22100396e347ed19278b36c5f6ef04 Mon Sep 17 00:00:00 2001 From: Commander1024 Date: Fri, 14 Aug 2020 09:45:00 +0200 Subject: [PATCH] Moved pagination to partials and included it in place_list. --- .../templates/partials/nav/pagination.html | 25 +++++++++++++++++ .../templates/place/place_list.html | 27 ++----------------- 2 files changed, 27 insertions(+), 25 deletions(-) create mode 100644 lostplaces/lostplaces_app/templates/partials/nav/pagination.html diff --git a/lostplaces/lostplaces_app/templates/partials/nav/pagination.html b/lostplaces/lostplaces_app/templates/partials/nav/pagination.html new file mode 100644 index 0000000..82f8cb0 --- /dev/null +++ b/lostplaces/lostplaces_app/templates/partials/nav/pagination.html @@ -0,0 +1,25 @@ +
+ +
\ No newline at end of file diff --git a/lostplaces/lostplaces_app/templates/place/place_list.html b/lostplaces/lostplaces_app/templates/place/place_list.html index 52e3224..7c2fbc8 100644 --- a/lostplaces/lostplaces_app/templates/place/place_list.html +++ b/lostplaces/lostplaces_app/templates/place/place_list.html @@ -46,30 +46,7 @@ {% endfor %} -
- -
+ {% include 'partials/nav/pagination.html' %} + {% endblock maincontent %} \ No newline at end of file