ictgj-voting/templates/admin-games.html

23 lines
484 B
HTML
Raw Normal View History

{{ if not .TemplateData.Games }}
<div>No games have been created</div>
{{ else }}
<table id="games-table" class="sortable pure-table pure-table-bordered center">
2017-06-21 20:07:17 +00:00
<thead>
<tr>
<th>Game Name</th>
<th>Team Name</th>
<th>Screenshots</th>
</tr>
2017-06-21 20:07:17 +00:00
</thead>
<tbody>
{{ range $i, $v := .TemplateData.Games }}
<tr>
<td>{{ $v.Name }}</td>
<td></td>
<td>{{ len $v.Screenshots }}</td>
</tr>
{{ end }}
2017-06-21 20:07:17 +00:00
</tbody>
</table>
{{ end }}