diff options
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}} |
