diff options
| author | Leonardo Bishop <me@leonardobishop.net> | 2026-01-07 23:39:53 +0000 |
|---|---|---|
| committer | Leonardo Bishop <me@leonardobishop.net> | 2026-01-07 23:39:53 +0000 |
| commit | 03cd6bdfbd473dba3f3dc50a1b15e389aac5bc70 (patch) | |
| tree | 5fea2b1840e298aaab953add749fb9226bd4a710 /web/views/f_instance.html | |
Initial commit
Diffstat (limited to 'web/views/f_instance.html')
| -rw-r--r-- | web/views/f_instance.html | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/web/views/f_instance.html b/web/views/f_instance.html new file mode 100644 index 0000000..1518ee2 --- /dev/null +++ b/web/views/f_instance.html @@ -0,0 +1,28 @@ +{{range .Instances}} +<tr> +<td> + <div class="d-flex flex-column gap-2 justify-content-between"> + <b>{{.Address}}</b> + + <span>Expires in <code>{{.ExpiresIn}}</code></span> + + <small>Instance <code>{{.DeployKey}}</code> of <i>{{.ChallengeName}}</i></small> + </div> +</td> +<td> + <button + hx-post="/instances/{{.DeployKey}}/stop" + hx-target="#instance-action-result" + hx-swap="beforeend" + class="btn btn-danger"> + Stop + </button> +</td> +</tr> +{{else}} +<tr> +<td colspan="2"> +<i class="text-center text-muted">Your team does not have any instances</i> +</td> +</tr> +{{end}} |
