From ed1f9f05702615b4d2bedbfdfd9abd6fcb3a30f7 Mon Sep 17 00:00:00 2001 From: Johnny Date: Fri, 26 Oct 2018 00:43:58 +0000 Subject: [PATCH] Fixes margins on paginator to be more consistent with rest of site. --- .../website/templates/website/pagination.html | 52 +++++++++---------- 1 file changed, 25 insertions(+), 27 deletions(-) diff --git a/evennia/web/website/templates/website/pagination.html b/evennia/web/website/templates/website/pagination.html index e2cb6bed73..c89d4ee473 100644 --- a/evennia/web/website/templates/website/pagination.html +++ b/evennia/web/website/templates/website/pagination.html @@ -1,32 +1,30 @@ {% if page_obj %} -
-
-
-
-
- -
    -
  • - - « - Previous - -
  • +
    +
    +
    +
    + +
      +
    • + + « + Previous + +
    • + + {% for l in page_obj.paginator.page_range %} + {% if l <= page_obj.number|add:5 and l >= page_obj.number|add:-5 %} +
    • {{ forloop.counter }}
    • + {% endif %} + {% endfor %} - {% for l in page_obj.paginator.page_range %} - {% if l <= page_obj.number|add:5 and l >= page_obj.number|add:-5 %} -
    • {{ forloop.counter }}
    • - {% endif %} - {% endfor %} - -
    • - - » - Next - -
    • -
    -
    +
  • + + » + Next + +
  • +