diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2023-04-19 12:17:27 +0200 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2023-04-19 12:17:27 +0200 |
commit | ddb1ca205abb6349b59bc5ea7764a68484e72338 (patch) | |
tree | 84db9ac2260ad87b04bca10ba6a90ecb1b4b83b3 /templates/garage_website_list.html | |
parent | bdb9af5a26f49799cb1feec866d289513eb09e7b (diff) | |
download | guichet-ddb1ca205abb6349b59bc5ea7764a68484e72338.tar.gz guichet-ddb1ca205abb6349b59bc5ea7764a68484e72338.zip |
bind website page
Diffstat (limited to 'templates/garage_website_list.html')
-rw-r--r-- | templates/garage_website_list.html | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/templates/garage_website_list.html b/templates/garage_website_list.html index 6f5312f..ded8096 100644 --- a/templates/garage_website_list.html +++ b/templates/garage_website_list.html @@ -15,12 +15,24 @@ <th scope="col">URLs</th> </thead> <tbody> + {{ range $buck := .Key.Buckets }} + {{ if $buck.GlobalAliases }} <tr> <td> - <a href="/garage/website/b/aa">aa</a> + <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> - <td>aa</td> </tr> + {{ end }} + {{ end }} </tbody> </table> {{end}} |