From fcbdb248faa3ac4f4ec0c7e8fa868f71719f9d33 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sun, 22 Oct 2023 16:07:04 +0100 Subject: [PATCH] Add pagination controls to hero buttons --- website/common/templates/common/listing_page.html | 11 ++++++++++- website/common/templates/common/pagination.html | 8 ++++---- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/website/common/templates/common/listing_page.html b/website/common/templates/common/listing_page.html index 9c40506..45bc1b9 100644 --- a/website/common/templates/common/listing_page.html +++ b/website/common/templates/common/listing_page.html @@ -1,6 +1,6 @@ {% extends "common/content_page.html" %} -{% load wagtailroutablepage_tags %} +{% load wagtailroutablepage_tags wagtailadmin_tags %} {% block extra_head %} {{ block.super }} @@ -9,6 +9,15 @@ {% block hero_buttons %} + + {% if listing_pages.has_previous %} + + {% endif %} + + {% if listing_pages.has_next %} + + {% endif %} + {{ block.super }} {% endblock %} diff --git a/website/common/templates/common/pagination.html b/website/common/templates/common/pagination.html index 9232476..38c443f 100644 --- a/website/common/templates/common/pagination.html +++ b/website/common/templates/common/pagination.html @@ -2,15 +2,15 @@