Refactoring
This commit is contained in:
parent
83429711b6
commit
b9fd6b9275
2 changed files with 5 additions and 3 deletions
6
home.go
6
home.go
|
@ -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)
|
||||
|
||||
|
|
|
@ -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}}
|
||||
|
|
Loading…
Reference in a new issue