From 40575620ee5f5d988602b8915e98a171a466f49a Mon Sep 17 00:00:00 2001 From: Chris Mann Date: Mon, 24 Jul 2023 10:47:30 +0200 Subject: [PATCH] Menu system conform --- templates/admin_activate.html | 11 +++++------ templates/admin_create.html | 11 +++++------ templates/admin_groups.html | 11 +++++------ templates/admin_ldap.html | 11 +++++------ templates/admin_mailing.html | 14 +++++++------- templates/admin_mailing_list.html | 2 +- templates/admin_users.html | 11 +++++------ templates/directory.html | 22 ++++++++-------------- templates/garage_key.html | 2 +- templates/garage_website_inspect.html | 2 +- templates/garage_website_list.html | 2 +- templates/garage_website_new.html | 2 +- templates/home.html | 11 +++++------ templates/invite_invalid_code.html | 2 +- templates/invite_send_code.html | 2 +- templates/layout.html | 2 +- templates/login.html | 2 +- templates/passwd.html | 2 +- templates/password_lost.html | 2 +- templates/profile.html | 11 +++++------ 20 files changed, 61 insertions(+), 74 deletions(-) diff --git a/templates/admin_activate.html b/templates/admin_activate.html index 5d5cfe5..3390d66 100644 --- a/templates/admin_activate.html +++ b/templates/admin_activate.html @@ -12,15 +12,14 @@ {{end}} {{if .Login}} -
  • Se déconnecter
  • -{{else}} -
  • Se connecter +
  • <&ngsp; Compte -
  • + +{{else}} +
  • <&ngsp;Se connecter
  • {{end}} {{end}} diff --git a/templates/admin_create.html b/templates/admin_create.html index 32418f2..07bc90c 100644 --- a/templates/admin_create.html +++ b/templates/admin_create.html @@ -12,15 +12,14 @@ {{end}} {{if .Login}} -
  • Se déconnecter
  • -{{else}} -
  • Se connecter +
  • <&ngsp; Compte -
  • + +{{else}} +
  • <&ngsp;Se connecter
  • {{end}} {{end}} diff --git a/templates/admin_groups.html b/templates/admin_groups.html index d185650..32f8d22 100644 --- a/templates/admin_groups.html +++ b/templates/admin_groups.html @@ -12,15 +12,14 @@ {{end}} {{if .Login}} -
  • Se déconnecter
  • -{{else}} -
  • Se connecter +
  • <&ngsp; Compte -
  • + +{{else}} +
  • <&ngsp;Se connecter
  • {{end}} {{end}} diff --git a/templates/admin_ldap.html b/templates/admin_ldap.html index 49ce094..b773e43 100644 --- a/templates/admin_ldap.html +++ b/templates/admin_ldap.html @@ -12,15 +12,14 @@ {{end}} {{if .Login}} -
  • Se déconnecter
  • -{{else}} -
  • Se connecter +
  • <&ngsp; Compte -
  • + +{{else}} +
  • <&ngsp;Se connecter
  • {{end}} {{end}} diff --git a/templates/admin_mailing.html b/templates/admin_mailing.html index f38b4fd..f5b6d1c 100644 --- a/templates/admin_mailing.html +++ b/templates/admin_mailing.html @@ -2,8 +2,9 @@ {{define "admenu"}} {{if .Login.CanAdmin}} -
  • Administrer LDAP +
  • Administration
  • +{{else}} +
  • <&ngsp;Se connecter
  • {{end}} {{end}} diff --git a/templates/admin_mailing_list.html b/templates/admin_mailing_list.html index 3533c68..c38f3ca 100644 --- a/templates/admin_mailing_list.html +++ b/templates/admin_mailing_list.html @@ -12,7 +12,7 @@ {{if .Login}}
  • Se déconnecter
  • {{else}} -
  • Se connecter +
  • <&ngsp;Se connecter
  • +{{else}} +
  • <&ngsp;Se connecter
  • {{end}} {{end}} diff --git a/templates/directory.html b/templates/directory.html index 799453e..38e9c8b 100644 --- a/templates/directory.html +++ b/templates/directory.html @@ -1,8 +1,10 @@ {{define "title"}}Annuaire |{{end}} + {{define "admenu"}} {{if .Login.CanAdmin}} -
  • Administrer LDAP +
  • Administration
  • +{{else}} +
  • <&ngsp;Se connecter
  • {{end}} {{end}} -{{define "body"}} -
    -

    Annuaire

    - Menu principal -
    - -
    diff --git a/templates/garage_key.html b/templates/garage_key.html index 51dc81c..edcf2e0 100644 --- a/templates/garage_key.html +++ b/templates/garage_key.html @@ -12,7 +12,7 @@ {{if .Login}}
  • Se déconnecter
  • {{else}} -
  • Se connecter +
  • <&ngsp;Se connecter