From be9d1e3652a86a960477409ce61fd329bf8d22ed Mon Sep 17 00:00:00 2001 From: Julian Hurst Date: Thu, 5 Sep 2024 18:26:22 +0200 Subject: Support path prefix --- templates/admin.html | 4 ++-- templates/admin/users.html | 2 +- templates/base.html | 2 +- templates/createuser.html | 2 +- templates/imgs.html | 8 ++++---- templates/imgs_page.html | 4 ++-- templates/index.html | 2 +- templates/login.html | 2 +- templates/nav.html | 2 +- templates/nav_logged.html | 12 ++++++------ templates/user.html | 10 +++++----- 11 files changed, 25 insertions(+), 25 deletions(-) (limited to 'templates') diff --git a/templates/admin.html b/templates/admin.html index 7032daa..b8f7b6d 100644 --- a/templates/admin.html +++ b/templates/admin.html @@ -3,10 +3,10 @@
diff --git a/templates/admin/users.html b/templates/admin/users.html index 9aedf44..56561f2 100644 --- a/templates/admin/users.html +++ b/templates/admin/users.html @@ -5,7 +5,7 @@ diff --git a/templates/base.html b/templates/base.html index 653570d..8ce6c65 100644 --- a/templates/base.html +++ b/templates/base.html @@ -3,7 +3,7 @@ - + {{block "title" .}}{{end}} - docspace diff --git a/templates/createuser.html b/templates/createuser.html index aa00ee3..6ad76a3 100644 --- a/templates/createuser.html +++ b/templates/createuser.html @@ -4,7 +4,7 @@ {{if .Data.Error}}

{{.Data.Error}}

{{end}} -
+ Pour des raisons de sécurité, le mot de passe doit avoir une longeur supérieure ou égale à 10 caractères.





diff --git a/templates/imgs.html b/templates/imgs.html index 2f49cc2..9795a9b 100644 --- a/templates/imgs.html +++ b/templates/imgs.html @@ -5,9 +5,9 @@ diff --git a/templates/imgs_page.html b/templates/imgs_page.html index 3aa6bfa..74df9a3 100644 --- a/templates/imgs_page.html +++ b/templates/imgs_page.html @@ -2,11 +2,11 @@ {{range $i, $img := .Data.Imgs}} {{if eq (add $i $.Data.Start) $.Data.End}} {{if ne $.Data.UserImpersonation ""}} -
{{else}} -
{{end}} diff --git a/templates/index.html b/templates/index.html index 860bce2..5f5d6da 100644 --- a/templates/index.html +++ b/templates/index.html @@ -2,7 +2,7 @@ {{define "content"}} {{end}} diff --git a/templates/login.html b/templates/login.html index 037879d..1b779d5 100644 --- a/templates/login.html +++ b/templates/login.html @@ -4,7 +4,7 @@ {{if .Data.Error}}

{{.Data.Error}}

{{end}} - +



diff --git a/templates/nav.html b/templates/nav.html index daf061c..fbfc0fb 100644 --- a/templates/nav.html +++ b/templates/nav.html @@ -3,7 +3,7 @@ diff --git a/templates/nav_logged.html b/templates/nav_logged.html index d57df79..4f3c9ca 100644 --- a/templates/nav_logged.html +++ b/templates/nav_logged.html @@ -7,16 +7,16 @@ {{end}} {{if and .Data .Data.UserImpersonation}} -
  • Accueil
  • -
  • Images
  • +
  • Accueil
  • +
  • Images
  • {{else}} -
  • Accueil
  • -
  • Images
  • +
  • Accueil
  • +
  • Images
  • {{end}} {{if .User.IsAdmin}} -
  • Admin
  • +
  • Admin
  • {{end}} -
  • Se déconnecter
  • +
  • Se déconnecter
  • {{end}} diff --git a/templates/user.html b/templates/user.html index 42ebb3d..7e5a98e 100644 --- a/templates/user.html +++ b/templates/user.html @@ -6,17 +6,17 @@

    {{.Data.Error}}

    {{end}} {{if ne .Data.UserImpersonation ""}} - + {{else}} - + {{end}} {{if ne .Data.UserImpersonation ""}} -
    + {{else}} - + {{end}}
    @@ -47,7 +47,7 @@
    - + -- cgit v1.2.3