gvguichet/templates/garage_website_list.html

39 lines
992 B
HTML
Raw Permalink Normal View History

2023-04-18 19:37:51 +02:00
{{define "title"}}Sites webs |{{end}}
{{define "body"}}
<div class="d-flex">
<h4>Sites webs</h4>
2023-04-18 22:09:56 +02: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 19:37:51 +02: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 12:17:27 +02:00
{{ range $buck := .Key.Buckets }}
{{ if $buck.GlobalAliases }}
2023-04-18 19:37:51 +02:00
<tr>
<td>
2023-04-19 12:17:27 +02: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 11:18:21 +02:00
https://{{ $alias }}.web.resdigita.org
2023-04-19 12:17:27 +02:00
{{ end }}
{{ end }}
2023-04-18 19:37:51 +02:00
</td>
</tr>
2023-04-19 12:17:27 +02:00
{{ end }}
{{ end }}
2023-04-18 19:37:51 +02:00
</tbody>
</table>
{{end}}