summaryrefslogtreecommitdiff
path: root/pkg/webui/html/state.html
blob: 4439d9ea2d6b785c47666c0cfabbe8dda9e343ed (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
{{ 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="/version/{{ .Id }}">{{ index $.Usernames .AccountId }}</a></td>
        <td><a href="/version/{{ .Id }}">{{ .Created }}</a></td>
      </tr>
      {{ end }}
    </tbody>
  </table>
</main>
{{ end }}