summaryrefslogtreecommitdiff
path: root/pkg/webui/html/states.html
diff options
context:
space:
mode:
authorJulien Dessaux2025-01-22 00:46:49 +0100
committerJulien Dessaux2025-01-22 00:46:49 +0100
commit09885ef1e4b7610d05377596f02d08c5079c0434 (patch)
tree9c8322ea718f1eb721a4c685cb95386fa84bb797 /pkg/webui/html/states.html
parentchore(webui): refactor login and session middleware handling (diff)
downloadtfstated-09885ef1e4b7610d05377596f02d08c5079c0434.tar.gz
tfstated-09885ef1e4b7610d05377596f02d08c5079c0434.tar.bz2
tfstated-09885ef1e4b7610d05377596f02d08c5079c0434.zip
feat(webui): implement states listHEADmain
Diffstat (limited to '')
-rw-r--r--pkg/webui/html/states.html23
1 files changed, 23 insertions, 0 deletions
diff --git a/pkg/webui/html/states.html b/pkg/webui/html/states.html
new file mode 100644
index 0000000..8d3d803
--- /dev/null
+++ b/pkg/webui/html/states.html
@@ -0,0 +1,23 @@
+{{ define "main" }}
+<h1>States</h1>
+<table class="striped">
+ <thead>
+ <tr>
+ <th scope="col">Path</th>
+ <th scope="col">Created</th>
+ <th scope="col">Updated</th>
+ <th scope="col">Locked</th>
+ </tr>
+ </thead>
+ <tbody>
+ {{ range .States }}
+ <tr>
+ <th scope="row">{{ .Path }}</th>
+ <td>{{ .Created }}</td>
+ <td>{{ .Updated }}</td>
+ <td>{{ .Lock }}</td>
+ </tr>
+ {{ end }}
+ </tbody>
+</table>
+{{ end }}