From f416775268085c7fb7f90cf54ea2149267b960e6 Mon Sep 17 00:00:00 2001 From: Julian Hurst Date: Wed, 25 Jan 2023 01:23:58 +0100 Subject: Add user impersonation support for admins --- templates/imgs_page.html | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'templates/imgs_page.html') diff --git a/templates/imgs_page.html b/templates/imgs_page.html index 665daf3..3f1ce58 100644 --- a/templates/imgs_page.html +++ b/templates/imgs_page.html @@ -1,9 +1,15 @@ {{define "imgspage"}} {{range $i, $img := .Imgs}} {{if eq (add $i $.Start) $.End}} + {{if ne $.UserImpersonation ""}} +
+ {{else}}
+ {{end}} {{$img.Name}}

{{else}} -- cgit v1.2.3