From a9f4dd41c11bc4255823ebad7ceabf033cf32ecf Mon Sep 17 00:00:00 2001 From: Mx Kookie Date: Sat, 31 Oct 2020 20:17:22 +0100 Subject: Add 'development/libs/barrel/' from commit 'f3b8ab47d3a3ad8d43dc2b89a5eec1c4e87b033d' git-subtree-dir: development/libs/barrel git-subtree-mainline: 518551bfa6ef7d6508b425afa4bfb3ddbd418141 git-subtree-split: f3b8ab47d3a3ad8d43dc2b89a5eec1c4e87b033d --- .../docs/blue-penguin/templates/pagination.html | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 development/libs/barrel/docs/blue-penguin/templates/pagination.html (limited to 'development/libs/barrel/docs/blue-penguin/templates/pagination.html') diff --git a/development/libs/barrel/docs/blue-penguin/templates/pagination.html b/development/libs/barrel/docs/blue-penguin/templates/pagination.html new file mode 100644 index 000000000000..69eac104e99a --- /dev/null +++ b/development/libs/barrel/docs/blue-penguin/templates/pagination.html @@ -0,0 +1,38 @@ +{# Use PAGINATION_PATTERNS or pagination may break #} +{% if DEFAULT_PAGINATION and (articles_page.has_previous() or articles_page.has_next()) %} + +
+
+ {% if PAGINATION_PATTERNS[0][0] != 0 %} + {%- if articles_page.has_previous() %} + {% if articles_page.previous_page_number() == 1 %} + + ← Previous + {%- else %} + + ← Previous + {%- endif %} + {%- endif %} + {%- if articles_page.has_next() %} + + Next → + {%- endif %} + {% else %} + {%- if articles_page.has_previous() %} + {% if articles_page.previous_page_number() == 1 %} + + ← Previous + {%- else %} + + ← Previous + {%- endif %} + {%- endif %} + {%- if articles_page.has_next() %} + + Next → + {%- endif %} + {% endif %} + + Page {{ articles_page.number }} of {{ articles_paginator.num_pages }} +
+{% endif %} -- cgit v1.2.3