From 12f7cf21265d7d6c9d1d60e2ae63753846a58c4b Mon Sep 17 00:00:00 2001 From: Julian Hurst Date: Thu, 26 Jan 2023 22:25:50 +0100 Subject: Wrap template data to always pass the User --- templates/user.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'templates/user.html') diff --git a/templates/user.html b/templates/user.html index 4180407..42ebb3d 100644 --- a/templates/user.html +++ b/templates/user.html @@ -2,19 +2,19 @@ {{define "content"}}

Espace utilisateur

Documents

- {{if .Error}} -

{{.Error}}

+ {{if .Data.Error}} +

{{.Data.Error}}

{{end}} - {{if ne .UserImpersonation ""}} -
+ {{if ne .Data.UserImpersonation ""}} + {{else}} {{end}}
- {{if ne .UserImpersonation ""}} -
+ {{if ne .Data.UserImpersonation ""}} + {{else}} {{end}} @@ -26,7 +26,7 @@ Date de modification Taille - {{range .Docs}} + {{range .Data.Docs}} @@ -48,7 +48,7 @@
- +
{{end}} -- cgit v1.2.3