aboutsummaryrefslogtreecommitdiff
path: root/templates/garage_website_list.html
blob: ded80963c510a60de74dcc6acab97e16f3501ab6 (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
{{define "title"}}Sites webs |{{end}}

{{define "body"}}

<div class="d-flex">
  <h4>Sites webs</h4>
  <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>
  <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>
      {{ range $buck := .Key.Buckets }}
      {{ if $buck.GlobalAliases }}
      <tr>
          <td>
              <a href="/garage/website/b/{{$buck.Id}}">{{$buck.Id}}</a>
          </td>
          <td>
              {{ range $alias := $buck.GlobalAliases }}
              {{ if contains $alias "." }}
              https://{{ $alias }}
              {{ else }}
              https://{{ $alias }}.web.deuxfleurs.fr
              {{ end }}
              {{ end }}
          </td>
      </tr>
      {{ end }}
      {{ end }}
  </tbody>
</table>
{{end}}