chore(webui): refactored states and versions routes

This commit is contained in:
Julien Dessaux 2025-02-23 22:06:46 +01:00
parent 6fd1663d8c
commit fb98b4fffe
Signed by: adyxax
GPG key ID: F92E51B86E07177E
8 changed files with 78 additions and 75 deletions

View file

@ -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 }}