aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/imgs.html13
1 files changed, 12 insertions, 1 deletions
diff --git a/templates/imgs.html b/templates/imgs.html
index 9b584a8..e747034 100644
--- a/templates/imgs.html
+++ b/templates/imgs.html
@@ -2,5 +2,16 @@
{{define "content"}}
<h1>Images</h1>
{{template "imgspage" .}}
- <span>{{.NbFiles}} images</span>
+ <noscript>
+ {{if ne .Page 0}}
+ <a href="/imgs?page={{add .Page -1}}">Previous page</a>
+ {{if lt .End .NbFiles}}
+ |
+ {{end}}
+ {{end}}
+ {{if lt .End .NbFiles}}
+ <a href="/imgs?page={{add .Page 1}}">Next page</a>
+ {{end}}
+ </noscript>
+ <br/><span>{{.NbFiles}} images</span>
{{end}}