ictgj-voting/templates/admin-games.html

23 lines
592 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>
2018-06-18 13:49:15 +00:00
<th class="only-large">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>
2018-06-18 13:49:15 +00:00
<td>{{ $v.Game.Name }}<p class="only-small">by<br />{{ $v.Name }}</p></td>
<td class="only-large">{{ $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 }}