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
|
||||
Surname string
|
||||
Description string
|
||||
Login *LoginStatus
|
||||
}
|
||||
|
||||
//ProfilePicture string
|
||||
|
@ -34,6 +35,7 @@ func handleProfile(w http.ResponseWriter, r *http.Request) {
|
|||
|
||||
data := &ProfileTplData{
|
||||
Status: login,
|
||||
Login: login,
|
||||
ErrorMessage: "",
|
||||
Success: false,
|
||||
}
|
||||
|
|
|
@ -56,4 +56,10 @@ div.card {
|
|||
div.card-header {
|
||||
transform: rotate(180deg);
|
||||
writing-mode: vertical-lr;
|
||||
}
|
||||
|
||||
@media (max-width: 700px) {
|
||||
div.card {
|
||||
flex-direction: column;
|
||||
}
|
||||
}
|
|
@ -1,5 +1,14 @@
|
|||
{{define "title"}}Profile |{{end}}
|
||||
{{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}}
|
||||
<li><a href="/logout">Se déconnecter</a></li>
|
||||
{{else}}
|
||||
|
|
Loading…
Reference in a new issue