From 5e7b7d136a1b91a70ed56dad19454366febe9b0b Mon Sep 17 00:00:00 2001
From: Gareth Coles
Date: Fri, 19 Apr 2019 12:16:57 +0100
Subject: Add paginators at the top of paginated sections
---
pydis_site/templates/wiki/dir.html | 2 +
pydis_site/templates/wiki/history.html | 85 +++++++++++-----------
.../templates/wiki/plugins/images/index.html | 3 +
pydis_site/templates/wiki/search.html | 2 +
4 files changed, 49 insertions(+), 43 deletions(-)
(limited to 'pydis_site')
diff --git a/pydis_site/templates/wiki/dir.html b/pydis_site/templates/wiki/dir.html
index d8560089..3a7e3edb 100644
--- a/pydis_site/templates/wiki/dir.html
+++ b/pydis_site/templates/wiki/dir.html
@@ -42,6 +42,8 @@
{% endwith %}
+ {% include "wiki/includes/pagination.html" %}
+
{% trans "Title" %} |
diff --git a/pydis_site/templates/wiki/history.html b/pydis_site/templates/wiki/history.html
index 793b4888..2e909df0 100644
--- a/pydis_site/templates/wiki/history.html
+++ b/pydis_site/templates/wiki/history.html
@@ -5,49 +5,48 @@
{% block wiki_pagetitle %}{% trans "History" %}: {{ article.current_revision.title }}{% endblock %}
{% block wiki_contents_tab %}
-
-{% include "wiki/includes/modals.html" %}
-
-{% addtoblock "js" %}
-
-
-{% endaddtoblock %}
-{% addtoblock "css" %}
-
-{% endaddtoblock %}
-
-
- {% trans "Click each revision to see a list of edited lines. Click the Preview button to see how the article looked at this stage. At the bottom of this page, you can change to a particular revision or merge an old revision with the current one." %}
-
+ {% include "wiki/includes/modals.html" %}
+
+ {% addtoblock "js" %}
+
+
+ {% endaddtoblock %}
+ {% addtoblock "css" %}
+
+ {% endaddtoblock %}
+
+
+ {% trans "Click each revision to see a list of edited lines. Click the Preview button to see how the article looked at this stage. At the bottom of this page, you can change to a particular revision or merge an old revision with the current one." %}
+
{% include "wiki/includes/pagination.html" %}
diff --git a/pydis_site/templates/wiki/plugins/images/index.html b/pydis_site/templates/wiki/plugins/images/index.html
index 4973ea6f..2b4d9800 100644
--- a/pydis_site/templates/wiki/plugins/images/index.html
+++ b/pydis_site/templates/wiki/plugins/images/index.html
@@ -13,6 +13,9 @@
{% trans "Back to edit page" %}
+
+ {% include "wiki/includes/pagination.html" %}
+
{% for image in images %}
{% with image.current_revision.imagerevision as revision %}
diff --git a/pydis_site/templates/wiki/search.html b/pydis_site/templates/wiki/search.html
index 80379a1d..296b21b3 100644
--- a/pydis_site/templates/wiki/search.html
+++ b/pydis_site/templates/wiki/search.html
@@ -37,6 +37,8 @@
+ {% include "wiki/includes/pagination.html" %}
+