From 562f9b6eae72e3f952a2ce1e74249bcd44e69272 Mon Sep 17 00:00:00 2001 From: "Kim \"BKC\" Carlbäcker" Date: Mon, 7 Nov 2016 11:44:49 +0100 Subject: Merge all pagination-templates into 'base/paginate' to reduce code-duplicity --- templates/explore/organizations.tmpl | 2 +- templates/explore/page.tmpl | 21 --------------------- templates/explore/repos.tmpl | 2 +- templates/explore/users.tmpl | 2 +- 4 files changed, 3 insertions(+), 24 deletions(-) delete mode 100644 templates/explore/page.tmpl (limited to 'templates/explore') diff --git a/templates/explore/organizations.tmpl b/templates/explore/organizations.tmpl index 6953414e85..c44456be4c 100644 --- a/templates/explore/organizations.tmpl +++ b/templates/explore/organizations.tmpl @@ -27,7 +27,7 @@ {{end}} - {{template "explore/page" .}} + {{template "base/paginate" .}} diff --git a/templates/explore/page.tmpl b/templates/explore/page.tmpl deleted file mode 100644 index fd3e7a7a82..0000000000 --- a/templates/explore/page.tmpl +++ /dev/null @@ -1,21 +0,0 @@ -{{with .Page}} - {{if gt .TotalPages 1}} -
- -
- {{end}} -{{end}} diff --git a/templates/explore/repos.tmpl b/templates/explore/repos.tmpl index 080a5076f1..eac3f1d26c 100644 --- a/templates/explore/repos.tmpl +++ b/templates/explore/repos.tmpl @@ -6,7 +6,7 @@
{{template "explore/search" .}} {{template "explore/repo_list" .}} - {{template "explore/page" .}} + {{template "base/paginate" .}}
diff --git a/templates/explore/users.tmpl b/templates/explore/users.tmpl index c13ccc6977..ce356f4fde 100644 --- a/templates/explore/users.tmpl +++ b/templates/explore/users.tmpl @@ -27,7 +27,7 @@ {{end}} - {{template "explore/page" .}} + {{template "base/paginate" .}} -- cgit v1.2.3