diff options
author | Quentin <quentin@dufour.io> | 2023-04-19 13:11:46 +0000 |
---|---|---|
committer | Quentin <quentin@dufour.io> | 2023-04-19 13:11:46 +0000 |
commit | 1e75c21b65021da0c3c5a8be9be12114a2327464 (patch) | |
tree | 978a49da113a050c60bd8a803e0d641255f82ede /templates/garage_website_list.html | |
parent | 02670ba6a60af8db1818d6d3adaafc7810d14689 (diff) | |
parent | 83ed187dbc6d1ef5f08d74aa57a7d17e907581c9 (diff) | |
download | guichet-1e75c21b65021da0c3c5a8be9be12114a2327464.tar.gz guichet-1e75c21b65021da0c3c5a8be9be12114a2327464.zip |
Merge pull request 'Manage Garage Websites from Guichet' (#19) from website into main
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/guichet/pulls/19
Diffstat (limited to 'templates/garage_website_list.html')
-rw-r--r-- | templates/garage_website_list.html | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/templates/garage_website_list.html b/templates/garage_website_list.html new file mode 100644 index 0000000..ded8096 --- /dev/null +++ b/templates/garage_website_list.html @@ -0,0 +1,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}} |