ictgj-voting/templates/admin-games.html

23 lines
507 B
HTML
Raw Normal View History

2017-06-30 19:35:36 +00:00
{{ if not .TemplateData.Teams }}
<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>
2017-06-30 19:35:36 +00:00
{{ range $i, $v := .TemplateData.Teams }}
<tr>
2017-06-30 19:35:36 +00:00
<td>{{ $v.Game.Name }}</td>
<td>{{ $v.Name }}</td>
2017-06-30 19:35:36 +00:00
<td>{{ len $v.Game.Screenshots }}</td>
</tr>
{{ end }}
2017-06-21 20:07:17 +00:00
</tbody>
</table>
{{ end }}