Refactoring

This commit is contained in:
Chris Mann 2023-07-25 21:47:10 +02:00
parent 83429711b6
commit b9fd6b9275
2 changed files with 5 additions and 3 deletions

View file

@ -25,13 +25,15 @@ func handleHome(w http.ResponseWriter, r *http.Request) {
data := HomePageData{
Login: NestedLoginTplData{
Login: login},
Login: login,
},
BaseDN: config.BaseDN,
Org: config.Org,
Common: NestedCommonTplData{
CanAdmin: can_admin,
CanInvite: true,
LoggedIn: true},
LoggedIn: true,
},
}
templateHome.Execute(w, data)

View file

@ -37,7 +37,7 @@
</div>
</div>
-->
{{if .Login.CanInvite}}
{{if .Common.CanInvite}}
<div class="card mt-3">
<div class="card-header">
Inviter des gens sur {{.Org}}