From 790ca38644b8c37c9feb7c433143a6b49b4f137e Mon Sep 17 00:00:00 2001 From: navanchauhan Date: Wed, 18 Jan 2023 02:41:10 -0700 Subject: added pagination and results per page --- templates/results.gtpl | 6 ++++-- templates/search.gtpl | 4 ++-- templates/search_results.html | 14 +++++++++----- 3 files changed, 15 insertions(+), 9 deletions(-) (limited to 'templates') diff --git a/templates/results.gtpl b/templates/results.gtpl index 151a7d3..ce2b99d 100644 --- a/templates/results.gtpl +++ b/templates/results.gtpl @@ -28,9 +28,11 @@ {{ end }} + {{if .ShowPrev }} +

Previous Page

+ {{ end }} {{ if .MoreResults }} -

Previous Page

-

Next Page

+

Next Page

{{ end }} \ No newline at end of file diff --git a/templates/search.gtpl b/templates/search.gtpl index b892f19..841b068 100644 --- a/templates/search.gtpl +++ b/templates/search.gtpl @@ -1,9 +1,9 @@ -

{{.GlobalVars.Name}}

+

{{.GlobalVars.Name}} - Classic Mode

- +
diff --git a/templates/search_results.html b/templates/search_results.html index 4c053ab..4e9b9a4 100644 --- a/templates/search_results.html +++ b/templates/search_results.html @@ -73,25 +73,28 @@ {{ end }} - {{ if .MoreResults }} +
+ {{if .ShowPrev }} + {{ end }} + {{ if .MoreResults }} + {{ end }}
- {{ end }} +