tfstated/pkg/webui/html/states.html

39 lines
876 B
HTML
Raw Normal View History

2025-01-22 00:46:49 +01:00
{{ define "main" }}
2025-01-26 00:04:38 +01:00
<main class="responsive" id="main">
2025-02-04 23:34:26 +01:00
<a href="/states/new">
<button class="small-round">
<i>add</i>
<span>New</span>
</button>
</a>
<table class="clickable-rows no-space">
2025-01-26 00:04:38 +01:00
<thead>
<tr>
<th>Path</th>
<th>Updated</th>
<th>Locked</th>
</tr>
</thead>
<tbody>
{{ range .States }}
<tr>
<td><a href="/state/{{ .Id }}">{{ .Path }}</a></td>
<td><a href="/state/{{ .Id }}">{{ .Updated }}</a></td>
<td>
<a href="/state/{{ .Id }}">
{{ if eq .Lock nil }}no{{ else }}
<span>yes</span>
<div class="tooltip left max">
<b>Lock</b>
<p>{{ .Lock }}</p>
</div>
{{ end }}
</a>
</td>
</tr>
{{ end }}
</tbody>
</table>
</main>
2025-01-22 00:46:49 +01:00
{{ end }}