ictgj-voting/templates/admin-games.html

23 lines
592 B
HTML

{{ if not .TemplateData.Teams }}
<div>No games have been created</div>
{{ else }}
<table id="games-table" class="sortable pure-table pure-table-bordered center">
<thead>
<tr>
<th>Game Name</th>
<th class="only-large">Team Name</th>
<th>Screenshots</th>
</tr>
</thead>
<tbody>
{{ range $i, $v := .TemplateData.Teams }}
<tr>
<td>{{ $v.Game.Name }}<p class="only-small">by<br />{{ $v.Name }}</p></td>
<td class="only-large">{{ $v.Name }}</td>
<td>{{ len $v.Game.Screenshots }}</td>
</tr>
{{ end }}
</tbody>
</table>
{{ end }}