2017-07-28 19:36:14 +00:00
|
|
|
<div class="results-container">
|
2017-07-09 02:51:43 +00:00
|
|
|
<h2>Current Results</h2>
|
|
|
|
{{ range $i, $v := .TemplateData.Results }}
|
2017-07-28 19:36:14 +00:00
|
|
|
{{ range $ti, $tv := $v.Teams }}
|
|
|
|
{{ $v.Rank }}: {{ $tv.Name }}<br />
|
|
|
|
{{ end }}
|
2017-07-09 02:51:43 +00:00
|
|
|
{{ end }}
|
2017-07-28 19:36:14 +00:00
|
|
|
</div>
|
2017-06-22 15:34:57 +00:00
|
|
|
<table id="votes-table" class="sortable pure-table pure-table-bordered center">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2018-06-18 13:49:15 +00:00
|
|
|
<th>Time</th>
|
2017-07-06 17:09:49 +00:00
|
|
|
<th>Rankings</th>
|
2018-06-18 13:49:15 +00:00
|
|
|
<th class="only-large">Client ID</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>
|
|
|
|
<ol>
|
|
|
|
{{ range $ci, $cv := $v.Choices }}
|
|
|
|
<li>{{ $cv.Name }}</li>
|
|
|
|
{{ end }}
|
|
|
|
</ol>
|
|
|
|
</td>
|
2018-06-18 13:49:15 +00:00
|
|
|
<td class="only-large">{{ $v.ClientId }}</td>
|
2017-06-22 15:34:57 +00:00
|
|
|
</tr>
|
|
|
|
{{ end }}
|
|
|
|
</tbody>
|
2017-07-06 17:09:49 +00:00
|
|
|
<tfoot>
|
|
|
|
<tr>
|
2017-10-21 22:47:01 +00:00
|
|
|
<td class="left" colspan="3">{{ len .TemplateData.AllVotes }} Total Votes</td>
|
2017-07-06 17:09:49 +00:00
|
|
|
</tr>
|
|
|
|
</tfoot>
|
2017-06-22 15:34:57 +00:00
|
|
|
</table>
|