From abd38704a48ea1bf8dde27e2b3817c5ae6734455 Mon Sep 17 00:00:00 2001 From: Chris Mann Date: Sun, 23 Jul 2023 17:18:29 +0200 Subject: [PATCH] G Pas --- templates/admin_activate.html | 23 ++++++++++++++++++++++- templates/admin_create.html | 23 ++++++++++++++++++++++- templates/admin_groups.html | 23 ++++++++++++++++++++++- templates/admin_ldap.html | 23 ++++++++++++++++++++++- templates/admin_mailing.html | 23 ++++++++++++++++++++++- templates/admin_mailing_list.html | 23 ++++++++++++++++++++++- templates/admin_users.html | 23 ++++++++++++++++++++++- templates/directory.html | 23 ++++++++++++++++++++++- templates/garage_key.html | 23 ++++++++++++++++++++++- templates/garage_website_inspect.html | 23 ++++++++++++++++++++++- templates/garage_website_list.html | 23 ++++++++++++++++++++++- templates/garage_website_new.html | 23 ++++++++++++++++++++++- templates/invite_invalid_code.html | 10 ++++++++++ templates/invite_new_account.html | 3 ++- templates/invite_send_code.html | 10 +++++++++- templates/password_lost.html | 10 ++++++++++ 16 files changed, 295 insertions(+), 14 deletions(-) diff --git a/templates/admin_activate.html b/templates/admin_activate.html index e3d670c..557a34c 100644 --- a/templates/admin_activate.html +++ b/templates/admin_activate.html @@ -1,5 +1,26 @@ {{define "title"}}Activer des utilisateurs |{{end}} - +{{define "admenu"}} +{{if .Login.CanAdmin}} +
  • Administrer LDAP + +
  • +{{end}} +{{if .Login}} +
  • Se déconnecter
  • +{{else}} +
  • Se connecter + +
  • +{{end}} +{{end}} {{define "body"}} diff --git a/templates/admin_create.html b/templates/admin_create.html index eafe6f2..45d4977 100644 --- a/templates/admin_create.html +++ b/templates/admin_create.html @@ -1,5 +1,26 @@ {{define "title"}}Nouvel objet |{{end}} - +{{define "admenu"}} +{{if .Login.CanAdmin}} +
  • Administrer LDAP + +
  • +{{end}} +{{if .Login}} +
  • Se déconnecter
  • +{{else}} +
  • Se connecter + +
  • +{{end}} +{{end}} {{define "body"}}

    Créer un objet

    diff --git a/templates/admin_groups.html b/templates/admin_groups.html index 4a85f2c..3664ec0 100644 --- a/templates/admin_groups.html +++ b/templates/admin_groups.html @@ -1,5 +1,26 @@ {{define "title"}}Liste des groupes |{{end}} - +{{define "admenu"}} +{{if .Login.CanAdmin}} +
  • Administrer LDAP + +
  • +{{end}} +{{if .Login}} +
  • Se déconnecter
  • +{{else}} +
  • Se connecter + +
  • +{{end}} +{{end}} {{define "body"}}
    diff --git a/templates/admin_ldap.html b/templates/admin_ldap.html index f99d626..dc3b478 100644 --- a/templates/admin_ldap.html +++ b/templates/admin_ldap.html @@ -1,5 +1,26 @@ {{define "title"}}Explorateur LDAP |{{end}} - +{{define "admenu"}} +{{if .Login.CanAdmin}} +
  • Administrer LDAP + +
  • +{{end}} +{{if .Login}} +
  • Se déconnecter
  • +{{else}} +
  • Se connecter + +
  • +{{end}} +{{end}} {{define "body"}}
    diff --git a/templates/admin_mailing.html b/templates/admin_mailing.html index 16bdd61..8943a78 100644 --- a/templates/admin_mailing.html +++ b/templates/admin_mailing.html @@ -1,5 +1,26 @@ {{define "title"}}Mailing lists |{{end}} - +{{define "admenu"}} +{{if .Login.CanAdmin}} +
  • Administrer LDAP + +
  • +{{end}} +{{if .Login}} +
  • Se déconnecter
  • +{{else}} +
  • Se connecter + +
  • +{{end}} +{{end}} {{define "body"}}
    diff --git a/templates/admin_mailing_list.html b/templates/admin_mailing_list.html index 77e9260..c5cbba4 100644 --- a/templates/admin_mailing_list.html +++ b/templates/admin_mailing_list.html @@ -1,5 +1,26 @@ {{define "title"}}ML {{.MailingList.GetAttributeValue .MailingNameAttr}} |{{end}} - +{{define "admenu"}} +{{if .Login.CanAdmin}} +
  • Administrer LDAP + +
  • +{{end}} +{{if .Login}} +
  • Se déconnecter
  • +{{else}} +
  • Se connecter + +
  • +{{end}} +{{end}} {{define "body"}}
    diff --git a/templates/admin_users.html b/templates/admin_users.html index 406a418..4668da9 100644 --- a/templates/admin_users.html +++ b/templates/admin_users.html @@ -1,5 +1,26 @@ {{define "title"}}Liste des utilisateurs |{{end}} - +{{define "admenu"}} +{{if .Login.CanAdmin}} +
  • Administrer LDAP + +
  • +{{end}} +{{if .Login}} +
  • Se déconnecter
  • +{{else}} +
  • Se connecter + +
  • +{{end}} +{{end}} {{define "body"}}
    diff --git a/templates/directory.html b/templates/directory.html index a1c058a..2a9c286 100644 --- a/templates/directory.html +++ b/templates/directory.html @@ -1,5 +1,26 @@ {{define "title"}}Annuaire |{{end}} - +{{define "admenu"}} +{{if .Login.CanAdmin}} +
  • Administrer LDAP + +
  • +{{end}} +{{if .Login}} +
  • Se déconnecter
  • +{{else}} +
  • Se connecter + +
  • +{{end}} +{{end}} {{define "body"}}

    Annuaire

    diff --git a/templates/garage_key.html b/templates/garage_key.html index cfbfbef..ebfa769 100644 --- a/templates/garage_key.html +++ b/templates/garage_key.html @@ -1,5 +1,26 @@ {{define "title"}}Profile |{{end}} - +{{define "admenu"}} +{{if .Login.CanAdmin}} +
  • Administrer LDAP + +
  • +{{end}} +{{if .Login}} +
  • Se déconnecter
  • +{{else}} +
  • Se connecter + +
  • +{{end}} +{{end}} {{define "body"}}

    Mes identifiants

    diff --git a/templates/garage_website_inspect.html b/templates/garage_website_inspect.html index d2acd6b..37543b1 100644 --- a/templates/garage_website_inspect.html +++ b/templates/garage_website_inspect.html @@ -1,5 +1,26 @@ {{define "title"}}Inspecter le site web |{{end}} - +{{define "admenu"}} +{{if .Login.CanAdmin}} +
  • Administrer LDAP + +
  • +{{end}} +{{if .Login}} +
  • Se déconnecter
  • +{{else}} +
  • Se connecter + +
  • +{{end}} +{{end}} {{define "body"}}

    Inspecter le site web

    diff --git a/templates/garage_website_list.html b/templates/garage_website_list.html index d7fd046..9daaf50 100644 --- a/templates/garage_website_list.html +++ b/templates/garage_website_list.html @@ -1,5 +1,26 @@ {{define "title"}}Sites webs |{{end}} - +{{define "admenu"}} +{{if .Login.CanAdmin}} +
  • Administrer LDAP + +
  • +{{end}} +{{if .Login}} +
  • Se déconnecter
  • +{{else}} +
  • Se connecter + +
  • +{{end}} +{{end}} {{define "body"}}
    diff --git a/templates/garage_website_new.html b/templates/garage_website_new.html index 34b8380..c9c15b3 100644 --- a/templates/garage_website_new.html +++ b/templates/garage_website_new.html @@ -1,5 +1,26 @@ {{define "title"}}Créer un site web |{{end}} - +{{define "admenu"}} +{{if .Login.CanAdmin}} +
  • Administrer LDAP + +
  • +{{end}} +{{if .Login}} +
  • Se déconnecter
  • +{{else}} +
  • Se connecter + +
  • +{{end}} +{{end}} {{define "body"}}

    Créer un site web

    diff --git a/templates/invite_invalid_code.html b/templates/invite_invalid_code.html index c1c55c9..8e5367e 100644 --- a/templates/invite_invalid_code.html +++ b/templates/invite_invalid_code.html @@ -1,5 +1,15 @@ {{define "title"}}Créer un compte |{{end}} +{{define "admenu"}} +
  • Se connecter + +
  • +{{end}} + {{define "body"}}

    Création d'un nouveau compte

    diff --git a/templates/invite_new_account.html b/templates/invite_new_account.html index deec2c1..8999dfe 100644 --- a/templates/invite_new_account.html +++ b/templates/invite_new_account.html @@ -1,5 +1,6 @@ {{define "title"}}Créer un compte |{{end}} - +{{define "admenu"}} +{{end}} {{define "body"}}

    Création d'un nouveau compte

    diff --git a/templates/invite_send_code.html b/templates/invite_send_code.html index 5c823d8..3325d48 100644 --- a/templates/invite_send_code.html +++ b/templates/invite_send_code.html @@ -1,5 +1,13 @@ {{define "title"}}Envoyer un code d'invitation |{{end}} - +{{define "admenu"}} +
  • Se connecter + +
  • +{{end}} {{define "body"}}

    Envoyer un code d'invitation

    diff --git a/templates/password_lost.html b/templates/password_lost.html index b5e3068..75a35a9 100644 --- a/templates/password_lost.html +++ b/templates/password_lost.html @@ -1,5 +1,15 @@ {{define "title"}}G Pas | Je n'ai pas mon mal de passe{{end}} +{{define "admenu"}} +
  • Se connecter + +
  • +{{end}} + {{define "body"}}

    G Pas