From 7d502441a6bd210aff8a8625ee87ea5a1fbbd7ee Mon Sep 17 00:00:00 2001 From: Julian Hurst Date: Fri, 13 Jan 2023 14:50:04 +0100 Subject: Security for /download and frontend style improvements --- templates/base.html | 2 ++ templates/createuser.html | 24 +++++++++++------------- templates/index.html | 12 +++++------- templates/login.html | 18 ++++++++---------- templates/nav.html | 10 ++++++---- templates/nav_logged.html | 8 +++++--- templates/user.html | 21 ++++++++++++--------- 7 files changed, 49 insertions(+), 46 deletions(-) (limited to 'templates') diff --git a/templates/base.html b/templates/base.html index 0c743ed..c2ca497 100644 --- a/templates/base.html +++ b/templates/base.html @@ -7,7 +7,9 @@ {{block "nav" .}}{{end}} +
{{block "content" .}} {{end}} +
diff --git a/templates/createuser.html b/templates/createuser.html index 1a06fa0..ee4858b 100644 --- a/templates/createuser.html +++ b/templates/createuser.html @@ -1,17 +1,15 @@ {{define "title"}}Créer un compte utilisateur{{end}} {{define "content"}}

Créer un compte utilisateur

-
- {{if .Error}} -

{{.Error}}

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

-

-

-

-

- - -
+{{if .Error}} +

{{.Error}}

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

+

+

+

+

+ + {{end}} diff --git a/templates/index.html b/templates/index.html index 01f7d72..860bce2 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,10 +1,8 @@ {{define "title"}}Acceuil{{end}} {{define "content"}} -
- -
+ {{end}} diff --git a/templates/login.html b/templates/login.html index 6a09dd7..e1b4c44 100644 --- a/templates/login.html +++ b/templates/login.html @@ -1,14 +1,12 @@ {{define "title"}}Connexion{{end}} {{define "content"}}

Connexion

-
- {{if .Error}} -

{{.Error}}

- {{end}} -
-

-

- -
-
+{{if .Error}} +

{{.Error}}

+{{end}} +
+

+

+ +
{{end}} diff --git a/templates/nav.html b/templates/nav.html index 432ddec..f8e7b7f 100644 --- a/templates/nav.html +++ b/templates/nav.html @@ -1,8 +1,10 @@ {{define "nav"}} {{end}} diff --git a/templates/nav_logged.html b/templates/nav_logged.html index 9e88507..a62585f 100644 --- a/templates/nav_logged.html +++ b/templates/nav_logged.html @@ -1,7 +1,9 @@ {{define "nav"}} {{end}} diff --git a/templates/user.html b/templates/user.html index f37c2fb..f116286 100644 --- a/templates/user.html +++ b/templates/user.html @@ -1,16 +1,16 @@ {{define "title"}}Acceuil{{end}} {{define "content"}} -

Espace utilisateur

-

Documents

-{{if .Error}} -

{{.Error}}

-{{end}} -
+

Espace utilisateur

+

Documents

+ {{if .Error}} +

{{.Error}}

+ {{end}}
-
+ +
@@ -23,7 +23,7 @@ - {{end}}
+ {{.Name}} @@ -35,8 +35,11 @@
+

-
+
+ +
{{end}} -- cgit v1.2.3