summaryrefslogtreecommitdiff
path: root/pkg/webui/html/states.html
blob: 787ac730f67afec2f78eb6312e2375423d5942ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{{ define "main" }}
<main class="responsive" id="main">
  <table class="clickable-rows no-space">
    <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 }}