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

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

{{ define "content" }}
<div>
  <a href="{{ .BasePath }}admin/games/new">Create New Game</a>
</div>
<ul>
  {{ range .Games }}
    <li>
      <a href="{{ $.BasePath }}admin/games/{{ .GameID }}">
        {{ .DisplayName }} (id={{ .GameID }} type={{ .GameType }} {{ if not .IsPublic }}private{{ end }})
      </a>
      <ul>
        {{ if .IsPublic }}
          <li><a href="{{ $.BasePath }}golf/{{ .GameID }}/play">Play</a></li>
        {{ end }}
        {{ if .IsPublic }}
          <li><a href="{{ $.BasePath }}golf/{{ .GameID }}/watch">Watch</a></li>
        {{ end }}
      </ul>
    </li>
  {{ end }}
</ul>
{{ end }}