aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/admin/templates/games.html
blob: 9dd9cae8e36a1baab0599a9c9039d28bdb29e2b0 (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
{{ template "base.html" . }}

{{ define "breadcrumb" }}
<a href="{{ .BasePath }}/admin/dashboard">Dashboard</a>
{{ end }}

{{ define "content" }}
<ul>
  {{ range .Games }}
    <li>
      <a href="{{ $.BasePath }}/admin/games/{{ .GameID }}">
        {{ .DisplayName }} (id={{ .GameID }} type={{ .GameType }} state={{ .State }})
      </a>
      <ul>
        {{ if and (ne .State "closed") (ne .State "finished") }}
          <li>
            <a href="{{ $.BasePath }}/golf/{{ .GameID }}/watch">Watch</a>
          </li>
        {{ end }}
      </ul>
    </li>
  {{ end }}
</ul>
{{ end }}