aboutsummaryrefslogtreecommitdiff
path: root/templates/home.html
blob: 8e0a23c6ad10443df993b15337eff1173ce49972 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
{{define "title"}}{{end}}

{{define "body"}}
<div class="alert alert-info">
    Bienvenue, <strong>{{ .User.WelcomeName }}</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 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>
            <a class="list-group-item list-group-item-action" href="/directory">Annuaire</a>
        </div>
    </div>
</div>

<div class="mt-3">
    <div class="card">
        <div class="card-header">
            Mes publications sur la toile
        </div>
        <div class="list-group list-group-flush">
            <a class="list-group-item list-group-item-action" href="/website/configure">Mes identifiants</a>
            <a class="list-group-item list-group-item-action" href="/website">Mes sites Web</a>
        </div>
    </div>
</div>

<div class="mt-3">
    <div class="card">
        <div class="card-header">
            Mon espace personnel (email, calendrier, contacts, etc.)
        </div>
        <div class="list-group list-group-flush">
{{if .User.Capabilities.CanUseEmail}}
            <a class="list-group-item list-group-item-action disabled" href="#">Accéder à l'interface web</a>
            <a class="list-group-item list-group-item-action" href="/pim/inspect">Voir les détails</a>
{{ else }}
            <a class="list-group-item list-group-item-action" href="/pim/setup">Créer mon espace</a>
{{ end }}
        </div>
    </div>
</div>

{{if .User.Capabilities.CanInvite}}
<div class="card mt-3">
  <div class="card-header">
    Inviter des gens sur Deuxfleurs
  </div>
  <div class="list-group list-group-flush">
    <a class="list-group-item list-group-item-action" href="/invite/send_code">Envoyer un code d'invitation</a>
    <a class="list-group-item list-group-item-action" href="/invite/new_account">Créer un nouveau compte directement</a>
  </div>
</div>
{{end}}

{{if .User.Capabilities.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">Utilisateur·ices</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/mailing">Mailing lists</a>
      <a class="list-group-item list-group-item-action" href="/admin/ldap/{{.BaseDN}}">Explorateur LDAP</a>
    </div>
  </div>
{{end}}

{{end}}