diff options
Diffstat (limited to 'pkg/webui/html/states.html')
-rw-r--r-- | pkg/webui/html/states.html | 51 |
1 files changed, 30 insertions, 21 deletions
diff --git a/pkg/webui/html/states.html b/pkg/webui/html/states.html index 8d3d803..f61b87c 100644 --- a/pkg/webui/html/states.html +++ b/pkg/webui/html/states.html @@ -1,23 +1,32 @@ {{ 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> +<main class="responsive" id="main"> + <table class="clickable-rows no-space stripes"> + <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> {{ end }} |