diff options
author | Julien Dessaux | 2025-02-23 22:06:46 +0100 |
---|---|---|
committer | Julien Dessaux | 2025-02-23 22:06:46 +0100 |
commit | a83296b79ac7eb851a44600fb7ccf6c1a200e2bc (patch) | |
tree | 25d69d9c8a0b4905761d6089acacc454fecf55dd /pkg/webui/html/statesId.html | |
parent | chore(tfstated): change database state id and version id formats to uuidv7 (diff) | |
download | tfstated-a83296b79ac7eb851a44600fb7ccf6c1a200e2bc.tar.gz tfstated-a83296b79ac7eb851a44600fb7ccf6c1a200e2bc.tar.bz2 tfstated-a83296b79ac7eb851a44600fb7ccf6c1a200e2bc.zip |
[webui] refactored states and versions routes
Diffstat (limited to 'pkg/webui/html/statesId.html')
-rw-r--r-- | pkg/webui/html/statesId.html | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pkg/webui/html/statesId.html b/pkg/webui/html/statesId.html new file mode 100644 index 0000000..3691bb6 --- /dev/null +++ b/pkg/webui/html/statesId.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="/versions/{{ .Id }}">{{ index $.Usernames .AccountId }}</a></td> + <td><a href="/versions/{{ .Id }}">{{ .Created }}</a></td> + </tr> + {{ end }} + </tbody> + </table> +</main> +{{ end }} |