Personalisation pour lesgrandsvoisins

This commit is contained in:
Chris Mann 2023-07-18 15:40:01 +02:00
parent d269f3088f
commit 7bee9941d3
3 changed files with 8 additions and 2 deletions

View File

@ -334,6 +334,7 @@ func handleHome(w http.ResponseWriter, r *http.Request) {
data := &HomePageData{ data := &HomePageData{
Login: login, Login: login,
BaseDN: config.BaseDN, BaseDN: config.BaseDN,
Org: config.Org
} }
templateHome.Execute(w, data) templateHome.Execute(w, data)

View File

@ -16,8 +16,12 @@
<div class="list-group list-group-flush"> <div class="list-group list-group-flush">
<a class="list-group-item list-group-item-action" href="/profile">Modifier mon profil</a> <a class="list-group-item list-group-item-action" href="/profile">Modifier mon profil</a>
<a class="list-group-item list-group-item-action" href="/passwd">Modifier mon mot de passe</a> <a class="list-group-item list-group-item-action" href="/passwd">Modifier mon mot de passe</a>
<!--
<a class="list-group-item list-group-item-action" href="/directory">Annuaire</a> <a class="list-group-item list-group-item-action" href="/directory">Annuaire</a>
</div> -->
<a class="list-group-item list-group-item-action" href="/SOGo">Accéder à mes curriels, mon agenda et à mes contacts</a>
<a class="list-group-item list-group-item-action" href="https://www.lesgrandsvoisins.com">Accéder au numérique des Grands Voisins .com</a>
</div>
</div> </div>
</div> </div>
<!-- <!--
@ -36,7 +40,7 @@
{{if .Login.CanInvite}} {{if .Login.CanInvite}}
<div class="card mt-3"> <div class="card mt-3">
<div class="card-header"> <div class="card-header">
Inviter des gens sur Deuxfleurs Inviter des gens sur {{.Org}}
</div> </div>
<div class="list-group list-group-flush"> <div class="list-group list-group-flush">
<a class="list-group-item list-group-item-action" href="/invite/send_code">Envoyer un code d'invitation</a> <a class="list-group-item list-group-item-action" href="/invite/send_code">Envoyer un code d'invitation</a>

View File

@ -11,6 +11,7 @@
<body> <body>
<div class="container mb-4"> <div class="container mb-4">
<h1>Guichet Les Grands Voisins</h1> <h1>Guichet Les Grands Voisins</h1>
<ul></ul>
<hr /> <hr />
{{template "body" .}} {{template "body" .}}
</div> </div>