diff --git a/templates/admin_activate.html b/templates/admin_activate.html index 0e9d8be..2c482f4 100644 --- a/templates/admin_activate.html +++ b/templates/admin_activate.html @@ -1,26 +1,6 @@ {{define "title"}}Activer des utilisateurs |{{end}} {{define "admenu"}} -{{if .Login.CanAdmin}} -
  • Administration - -
  • -{{end}} -{{if .Login}} -
  • Compte -
  • -{{else}} -
  • Se connecter
  • -{{end}} {{end}} {{define "body"}} diff --git a/templates/admin_create.html b/templates/admin_create.html index b736172..3b97228 100644 --- a/templates/admin_create.html +++ b/templates/admin_create.html @@ -1,26 +1,6 @@ {{define "title"}}Nouvel objet |{{end}} {{define "admenu"}} -{{if .Login.CanAdmin}} -
  • Administration - -
  • -{{end}} -{{if .Login}} -
  • Compte -
  • -{{else}} -
  • Se connecter
  • -{{end}} {{end}} diff --git a/templates/admin_groups.html b/templates/admin_groups.html index 0a4c4b8..f5cf22a 100644 --- a/templates/admin_groups.html +++ b/templates/admin_groups.html @@ -1,26 +1,6 @@ {{define "title"}}Liste des groupes |{{end}} {{define "admenu"}} -{{if .Login.CanAdmin}} -
  • Administration - -
  • -{{end}} -{{if .Login}} -
  • Compte -
  • -{{else}} -
  • Se connecter
  • -{{end}} {{end}} diff --git a/templates/admin_ldap.html b/templates/admin_ldap.html index f73e502..a0ca7b4 100644 --- a/templates/admin_ldap.html +++ b/templates/admin_ldap.html @@ -1,26 +1,6 @@ {{define "title"}}Explorateur LDAP |{{end}} {{define "admenu"}} -{{if .Login.CanAdmin}} -
  • Administration - -
  • -{{end}} -{{if .Login}} -
  • Compte -
  • -{{else}} -
  • Se connecter
  • -{{end}} {{end}} diff --git a/templates/admin_mailing.html b/templates/admin_mailing.html index d7bccbd..269bea2 100644 --- a/templates/admin_mailing.html +++ b/templates/admin_mailing.html @@ -1,26 +1,6 @@ {{define "title"}}Mailing lists |{{end}} {{define "admenu"}} -{{if .Login.CanAdmin}} -
  • Administration - -
  • -{{end}} -{{if .Login}} -
  • Compte -
  • -{{else}} -
  • Se connecter
  • -{{end}} {{end}} {{define "body"}} diff --git a/templates/admin_mailing_list.html b/templates/admin_mailing_list.html index 08b1ac9..de8555b 100644 --- a/templates/admin_mailing_list.html +++ b/templates/admin_mailing_list.html @@ -1,25 +1,5 @@ {{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 a841415..356ea4b 100644 --- a/templates/admin_users.html +++ b/templates/admin_users.html @@ -1,26 +1,6 @@ {{define "title"}}Liste des utilisateurs |{{end}} {{define "admenu"}} -{{if .Login.CanAdmin}} -
  • Administration - -
  • -{{end}} -{{if .Login}} -
  • Compte -
  • -{{else}} -
  • Se connecter
  • -{{end}} {{end}} diff --git a/templates/directory.html b/templates/directory.html index 690ac3e..250783b 100644 --- a/templates/directory.html +++ b/templates/directory.html @@ -1,26 +1,6 @@ {{define "title"}}Annuaire |{{end}} {{define "admenu"}} -{{if .Login.CanAdmin}} -
  • Administration - -
  • -{{end}} -{{if .Login}} -
  • Compte -
  • -{{else}} -
  • Se connecter
  • -{{end}} {{end}}
    diff --git a/templates/garage_key.html b/templates/garage_key.html index 62497c2..f519c19 100644 --- a/templates/garage_key.html +++ b/templates/garage_key.html @@ -1,26 +1,8 @@ {{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 af6fc31..ea76607 100644 --- a/templates/garage_website_inspect.html +++ b/templates/garage_website_inspect.html @@ -1,26 +1,8 @@ {{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 d20ff2c..eb36afa 100644 --- a/templates/garage_website_list.html +++ b/templates/garage_website_list.html @@ -1,26 +1,8 @@ {{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 7e73905..06b87c8 100644 --- a/templates/garage_website_new.html +++ b/templates/garage_website_new.html @@ -1,26 +1,8 @@ {{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/home.html b/templates/home.html index bcc01ef..bfc13c7 100644 --- a/templates/home.html +++ b/templates/home.html @@ -1,16 +1,6 @@ {{define "title"}}Home {{end}} {{define "admenu"}} -{{if .Login.CanAdmin}} -
  • Administration - -
  • -{{end}} {{end}} {{define "body"}} diff --git a/templates/invite_invalid_code.html b/templates/invite_invalid_code.html index 4248b67..fdb60de 100644 --- a/templates/invite_invalid_code.html +++ b/templates/invite_invalid_code.html @@ -1,21 +1,4 @@ {{define "title"}}Créer un compte |{{end}} {{define "admenu"}} -
  • Se connecter - -
  • -{{end}} - -{{define "body"}} -
    -

    Création d'un nouveau compte

    -
    - -
    - Code d'invitation invalide. -
    {{end}} diff --git a/templates/invite_new_account.html b/templates/invite_new_account.html index 8999dfe..5ce67db 100644 --- a/templates/invite_new_account.html +++ b/templates/invite_new_account.html @@ -1,6 +1,8 @@ {{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 9a404ee..c79844c 100644 --- a/templates/invite_send_code.html +++ b/templates/invite_send_code.html @@ -1,13 +1,7 @@ {{define "title"}}Envoyer un code d'invitation |{{end}} {{define "admenu"}} -
  • Se connecter - -
  • {{end}} + {{define "body"}}

    Envoyer un code d'invitation

    diff --git a/templates/layout.html b/templates/layout.html index 0d75d9a..30b13bd 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -53,6 +53,16 @@
  • Wiki
  • Admin
  • + {{if .Login.CanAdmin}} +
  • Administration + +
  • + {{end}}
  • Compte