aboutsummaryrefslogblamecommitdiff
path: root/templates/home.html
blob: b4012fdb23e1fa5a40ac0416cbe5dd69db57f7ae (plain) (tree)
1
2
3
4
5
6
7
8
9
                         

                 
                              
                                                                                      


                                                                           
      
                        


                           




                                                                                                  


                                                                                            


        









                                                                                               
        
       
 
       
{{define "title"}}{{end}}

{{define "body"}}
<div class="alert alert-info">
    Bienvenue, <strong>{{ .Login.UserEntry.GetAttributeValue "givenname" }}</strong> !
</div>
<div class="d-flex">
  <a class="ml-auto btn btn-sm btn-dark" href="/logout">Se déconnecter</a>
</div>
<div class="mt-3"></div>

<div class="card">
  <div class="card-header">
    Mon compte
  </div>
  <div class="list-group list-group-flush">
    <a class="list-group-item list-group-item-action" href="/profile">Modifier mon profil</a>
    <a class="list-group-item list-group-item-action" href="/passwd">Modifier mon mot de passe</a>
    {{if .CanInvite}}
      <a class="list-group-item list-group-item-action" href="/invite">Inviter quelqu'un</a>
    {{end}}
  </div>
</div>

{{if .CanAdmin}}
  <div class="card mt-3">
    <div class="card-header">
      Administration
    </div>
    <div class="list-group list-group-flush">
      <a class="list-group-item list-group-item-action" href="/admin/users">Utilisateurs</a>
      <a class="list-group-item list-group-item-action" href="/admin/groups">Groupes</a>
      <a class="list-group-item list-group-item-action" href="/admin/ldap">Explorateur LDAP</a>
    </div>
  </div>
{{end}}

{{end}}