From 4d6b99c67e8a92d04b8d0e0946523bcc94bb18b3 Mon Sep 17 00:00:00 2001 From: partisan Date: Sat, 31 Aug 2024 19:04:41 +0200 Subject: [PATCH] added dynamic loading for "forums" --- templates/forums.html | 43 ++++++++++++++++++++++++++----------------- templates/text.html | 14 ++++++++------ 2 files changed, 34 insertions(+), 23 deletions(-) diff --git a/templates/forums.html b/templates/forums.html index 04a3c2b..e833d4f 100755 --- a/templates/forums.html +++ b/templates/forums.html @@ -18,8 +18,7 @@
- +
@@ -41,10 +40,10 @@
-
- - -
+
+ + +
@@ -63,9 +62,9 @@ {{end}} - + -
+
{{if .Results}} {{range .Results}}
@@ -75,22 +74,32 @@

{{end}} - {{else}} + {{else if .NoResults}}
No results found for '{{ .Query }}'. Try different keywords.
+ {{else}} +
Looks like this is the end of results.
{{end}} +
+
+ Searching for new results...
-
+
- - {{ if .HasPrevPage }} - - {{ end }} - {{ if .HasNextPage }} - - {{ end }} + +
+ {{ if .HasPrevPage }} + + {{ end }} + {{ if .HasNextPage }} + + {{ end }} +
+ +
+