guichet/templates/garage_website_list.html

60 lines
1.6 KiB
HTML
Raw Normal View History

2023-04-18 17:37:51 +00:00
{{define "title"}}Sites webs |{{end}}
2023-07-23 15:18:29 +00:00
{{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}}
2023-07-24 08:52:50 +00:00
<li> &lt;&nbsp;<a href="#">Se connecter</a>
2023-07-23 15:18:29 +00:00
<ul class="submenu">
<li><a href="/">Se connecter</a></li>
<li><a href="/gpas">Mal de passe oublié</a></li>
<li><a href="/invite/new_account">S'enregistrer</a></li>
</ul>
</li>
{{end}}
{{end}}
2023-04-18 17:37:51 +00:00
{{define "body"}}
<div class="d-flex">
<h4>Sites webs</h4>
2023-04-18 20:09:56 +00:00
<a class="ml-auto btn btn-link" href="/garage/key">Mes identifiants</a>
<a class="ml-4 btn btn-success" href="/garage/website/new">Nouveau site web</a>
2023-04-18 17:37:51 +00:00
<a class="ml-4 btn btn-info" href="/">Menu principal</a>
</div>
<table class="table mt-4">
<thead>
<th scope="col">ID</th>
<th scope="col">URLs</th>
</thead>
<tbody>
2023-04-19 10:17:27 +00:00
{{ range $buck := .Key.Buckets }}
{{ if $buck.GlobalAliases }}
2023-04-18 17:37:51 +00:00
<tr>
<td>
2023-04-19 10:17:27 +00:00
<a href="/garage/website/b/{{$buck.Id}}">{{$buck.Id}}</a>
</td>
<td>
{{ range $alias := $buck.GlobalAliases }}
{{ if contains $alias "." }}
https://{{ $alias }}
{{ else }}
2023-07-17 09:18:21 +00:00
https://{{ $alias }}.web.resdigita.org
2023-04-19 10:17:27 +00:00
{{ end }}
{{ end }}
2023-04-18 17:37:51 +00:00
</td>
</tr>
2023-04-19 10:17:27 +00:00
{{ end }}
{{ end }}
2023-04-18 17:37:51 +00:00
</tbody>
</table>
{{end}}