G Pas
This commit is contained in:
parent
6559aa84ec
commit
1f3a7a6ffa
3 changed files with 17 additions and 0 deletions
|
@ -19,6 +19,7 @@ type ProfileTplData struct {
|
||||||
GivenName string
|
GivenName string
|
||||||
Surname string
|
Surname string
|
||||||
Description string
|
Description string
|
||||||
|
Login *LoginStatus
|
||||||
}
|
}
|
||||||
|
|
||||||
//ProfilePicture string
|
//ProfilePicture string
|
||||||
|
@ -34,6 +35,7 @@ func handleProfile(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
||||||
data := &ProfileTplData{
|
data := &ProfileTplData{
|
||||||
Status: login,
|
Status: login,
|
||||||
|
Login: login,
|
||||||
ErrorMessage: "",
|
ErrorMessage: "",
|
||||||
Success: false,
|
Success: false,
|
||||||
}
|
}
|
||||||
|
|
|
@ -56,4 +56,10 @@ div.card {
|
||||||
div.card-header {
|
div.card-header {
|
||||||
transform: rotate(180deg);
|
transform: rotate(180deg);
|
||||||
writing-mode: vertical-lr;
|
writing-mode: vertical-lr;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 700px) {
|
||||||
|
div.card {
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
}
|
}
|
|
@ -1,5 +1,14 @@
|
||||||
{{define "title"}}Profile |{{end}}
|
{{define "title"}}Profile |{{end}}
|
||||||
{{define "admenu"}}
|
{{define "admenu"}}
|
||||||
|
{{if .Login.CanAdmin}}
|
||||||
|
<li><a href="/admin/activate">Administrer LDAP</a>
|
||||||
|
<ul class="submenu">
|
||||||
|
<li><a href="/admin/activate">Activer des Utilisateur·ices</a></li>
|
||||||
|
<li><a href="/admin/users">Utilisateur·ices</a></li>
|
||||||
|
<li><a href="/admin/groups">Groupes</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
{{end}}
|
||||||
{{if .Login}}
|
{{if .Login}}
|
||||||
<li><a href="/logout">Se déconnecter</a></li>
|
<li><a href="/logout">Se déconnecter</a></li>
|
||||||
{{else}}
|
{{else}}
|
||||||
|
|
Loading…
Reference in a new issue