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

View file

@ -57,3 +57,9 @@ 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;
}
}

View file

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