This commit is contained in:
Chris Mann 2023-07-23 18:53:44 +02:00
parent 6559aa84ec
commit 1f3a7a6ffa
3 changed files with 17 additions and 0 deletions

View file

@ -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,
}

View file

@ -57,3 +57,9 @@ div.card-header {
transform: rotate(180deg);
writing-mode: vertical-lr;
}
@media (max-width: 700px) {
div.card {
flex-direction: column;
}
}

View file

@ -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}}