aboutsummaryrefslogtreecommitdiff
path: root/templates/imgs.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/imgs.html')
-rw-r--r--templates/imgs.html8
1 files changed, 8 insertions, 0 deletions
diff --git a/templates/imgs.html b/templates/imgs.html
index e747034..51b489d 100644
--- a/templates/imgs.html
+++ b/templates/imgs.html
@@ -4,13 +4,21 @@
{{template "imgspage" .}}
<noscript>
{{if ne .Page 0}}
+ {{if ne .UserImpersonation ""}}
+ <a href="/imgs?page={{add .Page -1}}&user={{.UserImpersonation}}">Previous page</a>
+ {{else}}
<a href="/imgs?page={{add .Page -1}}">Previous page</a>
+ {{end}}
{{if lt .End .NbFiles}}
|
{{end}}
{{end}}
{{if lt .End .NbFiles}}
+ {{if ne .UserImpersonation ""}}
+ <a href="/imgs?page={{add .Page 1}}&user={{.UserImpersonation}}">Next page</a>
+ {{else}}
<a href="/imgs?page={{add .Page 1}}">Next page</a>
+ {{end}}
{{end}}
</noscript>
<br/><span>{{.NbFiles}} images</span>