30 lines
632 B
HTML
30 lines
632 B
HTML
<table id="votes-table" class="sortable pure-table pure-table-bordered center">
|
|
<thead>
|
|
<tr>
|
|
<th>Timestamp</th>
|
|
<th>Client ID</th>
|
|
<th>Rankings</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{{ range $i, $v := .TemplateData.AllVotes }}
|
|
<tr>
|
|
<td>{{ $v.Timestamp }}</td>
|
|
<td>{{ $v.ClientId }}</td>
|
|
<td>
|
|
<ol>
|
|
{{ range $ci, $cv := $v.Choices }}
|
|
<li>{{ $cv.Name }}</li>
|
|
{{ end }}
|
|
</ol>
|
|
</td>
|
|
</tr>
|
|
{{ end }}
|
|
</tbody>
|
|
<tfoot>
|
|
<tr>
|
|
<td class="left" colspan="3">{{ len .Site.Votes }} Total Votes</td>
|
|
</tr>
|
|
</tfoot>
|
|
</table>
|