Voting is working

This commit is contained in:
2017-06-30 13:35:36 -06:00
parent 153b869a98
commit 96a53b6090
12 changed files with 515 additions and 80 deletions

View File

@@ -1,4 +1,4 @@
{{ if not .TemplateData.Games }}
{{ if not .TemplateData.Teams }}
<div>No games have been created</div>
{{ else }}
<table id="games-table" class="sortable pure-table pure-table-bordered center">
@@ -10,11 +10,11 @@
</tr>
</thead>
<tbody>
{{ range $i, $v := .TemplateData.Games }}
{{ range $i, $v := .TemplateData.Teams }}
<tr>
<td>{{ $v.Game.Name }}</td>
<td>{{ $v.Name }}</td>
<td></td>
<td>{{ len $v.Screenshots }}</td>
<td>{{ len $v.Game.Screenshots }}</td>
</tr>
{{ end }}
</tbody>