2017-06-22 15:34:57 +00:00
|
|
|
<table id="votes-table" class="sortable pure-table pure-table-bordered center">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Timestamp</th>
|
2017-07-06 17:09:49 +00:00
|
|
|
<th>Client ID</th>
|
|
|
|
<th>Rankings</th>
|
2017-06-22 15:34:57 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2017-07-06 17:09:49 +00:00
|
|
|
{{ range $i, $v := .TemplateData.AllVotes }}
|
2017-06-22 15:34:57 +00:00
|
|
|
<tr>
|
|
|
|
<td>{{ $v.Timestamp }}</td>
|
2017-07-06 17:09:49 +00:00
|
|
|
<td>{{ $v.ClientId }}</td>
|
|
|
|
<td>
|
|
|
|
<ol>
|
|
|
|
{{ range $ci, $cv := $v.Choices }}
|
|
|
|
<li>{{ $cv.Name }}</li>
|
|
|
|
{{ end }}
|
|
|
|
</ol>
|
|
|
|
</td>
|
2017-06-22 15:34:57 +00:00
|
|
|
</tr>
|
|
|
|
{{ end }}
|
|
|
|
</tbody>
|
2017-07-06 17:09:49 +00:00
|
|
|
<tfoot>
|
|
|
|
<tr>
|
|
|
|
<td class="left" colspan="3">{{ len .Site.Votes }} Total Votes</td>
|
|
|
|
</tr>
|
|
|
|
</tfoot>
|
2017-06-22 15:34:57 +00:00
|
|
|
</table>
|