diff options
author | Julien Dessaux | 2025-01-27 22:00:51 +0100 |
---|---|---|
committer | Julien Dessaux | 2025-01-27 22:00:51 +0100 |
commit | 26e10a9399bd6185741d0912ffa54c807ffef671 (patch) | |
tree | 0cf9e81c6880b07d9c029e3abd6ee03b6a2acdb1 /pkg/webui/html/state.html | |
parent | chore(webui): remove redundant set of the Cache-Control header in state get h... (diff) | |
download | tfstated-26e10a9399bd6185741d0912ffa54c807ffef671.tar.gz tfstated-26e10a9399bd6185741d0912ffa54c807ffef671.tar.bz2 tfstated-26e10a9399bd6185741d0912ffa54c807ffef671.zip |
feat(webui): implement state versions list
Diffstat (limited to '')
-rw-r--r-- | pkg/webui/html/state.html | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pkg/webui/html/state.html b/pkg/webui/html/state.html new file mode 100644 index 0000000..4439d9e --- /dev/null +++ b/pkg/webui/html/state.html @@ -0,0 +1,30 @@ +{{ define "main" }} +<main class="responsive" id="main"> + <p> + Locked: + {{ if eq .State.Lock nil }}no{{ else }} + <span>yes</span> + <div class="tooltip left max"> + <b>Lock</b> + <p>{{ .State.Lock }}</p> + </div> + {{ end }} + </p> + <table class="clickable-rows no-space"> + <thead> + <tr> + <th>By</th> + <th>Created</th> + </tr> + </thead> + <tbody> + {{ range .Versions }} + <tr> + <td><a href="/version/{{ .Id }}">{{ index $.Usernames .AccountId }}</a></td> + <td><a href="/version/{{ .Id }}">{{ .Created }}</a></td> + </tr> + {{ end }} + </tbody> + </table> +</main> +{{ end }} |