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{
|
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)
|
||||||
|
|
||||||
|
|
|
@ -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}}
|
||||||
|
|
Loading…
Reference in a new issue