2017-06-22 15:34:57 +00:00
|
|
|
{{ 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>
|
2017-06-22 15:34:57 +00:00
|
|
|
<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-22 15:34:57 +00:00
|
|
|
{{ 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>
|
2017-06-22 15:34:57 +00:00
|
|
|
{{ end }}
|