Refactoring

This commit is contained in:
Chris Mann 2023-07-25 21:45:01 +02:00
parent da6550ba7e
commit 83429711b6
2 changed files with 4 additions and 3 deletions

View file

@ -29,8 +29,9 @@ func handleHome(w http.ResponseWriter, r *http.Request) {
BaseDN: config.BaseDN,
Org: config.Org,
Common: NestedCommonTplData{
CanAdmin: can_admin,
LoggedIn: true},
CanAdmin: can_admin,
CanInvite: true,
LoggedIn: true},
}
templateHome.Execute(w, data)

View file

@ -44,7 +44,7 @@
</div>
<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/new_account">Créer un nouveau compte directement</a>
<a class="list-group-item list-group-item-action" href="/inscription">Créer un nouveau compte directement</a>
</div>
</div>
{{end}}