guichet/templates/home.html

49 lines
1.5 KiB
HTML
Raw Permalink Normal View History

2020-02-09 16:35:16 +00:00
{{define "title"}}{{end}}
2020-02-09 15:19:55 +00:00
{{define "body"}}
2020-02-09 18:56:01 +00:00
<div class="alert alert-info">
2021-09-11 14:25:40 +00:00
Welcome, <strong>{{ .Login.WelcomeName }}</strong> !
2020-02-09 16:47:36 +00:00
</div>
<div class="d-flex">
2021-09-11 14:25:40 +00:00
<a class="ml-auto btn btn-sm btn-dark" href="/logout">Disconnect</a>
2020-02-09 15:46:26 +00:00
</div>
2020-02-09 16:47:36 +00:00
<div class="mt-3"></div>
2020-02-09 15:46:26 +00:00
<div class="card">
<div class="card-header">
2021-09-11 14:25:40 +00:00
My Account
2020-02-09 16:35:16 +00:00
</div>
<div class="list-group list-group-flush">
2021-09-11 14:25:40 +00:00
<a class="list-group-item list-group-item-action" href="/profile">Modify My Profile</a>
<a class="list-group-item list-group-item-action" href="/passwd">Modify My Password</a>
<a class="list-group-item list-group-item-action" href="/directory">Directory</a>
2020-02-09 16:35:16 +00:00
</div>
</div>
2020-02-14 17:57:25 +00:00
{{if .Login.CanInvite}}
<div class="card mt-3">
<div class="card-header">
2021-09-11 14:25:40 +00:00
Invite People To Deuxfleurs
2020-02-14 17:57:25 +00:00
</div>
<div class="list-group list-group-flush">
2021-09-11 14:25:40 +00:00
<a class="list-group-item list-group-item-action" href="/invite/send_code">Send an invite code</a>
<a class="list-group-item list-group-item-action" href="/invite/new_account">Create a new Account</a>
2020-02-14 17:57:25 +00:00
</div>
</div>
{{end}}
2020-02-11 23:13:24 +00:00
{{if .Login.CanAdmin}}
<div class="card mt-3">
<div class="card-header">
Administration
</div>
<div class="list-group list-group-flush">
2021-09-11 14:25:40 +00:00
<a class="list-group-item list-group-item-action" href="/admin/users">Users</a>
<a class="list-group-item list-group-item-action" href="/admin/groups">Groups</a>
<a class="list-group-item list-group-item-action" href="/admin/ldap/{{.BaseDN}}">Explore the Directory</a>
</div>
2020-02-09 15:46:26 +00:00
</div>
{{end}}
2020-02-09 15:19:55 +00:00
{{end}}