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{ data := HomePageData{
Login: NestedLoginTplData{ Login: NestedLoginTplData{
Login: login}, Login: login,
},
BaseDN: config.BaseDN, BaseDN: config.BaseDN,
Org: config.Org, Org: config.Org,
Common: NestedCommonTplData{ Common: NestedCommonTplData{
CanAdmin: can_admin, CanAdmin: can_admin,
CanInvite: true, CanInvite: true,
LoggedIn: true}, LoggedIn: true,
},
} }
templateHome.Execute(w, data) templateHome.Execute(w, data)

View file

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