ictgj-voting/templates/admin-votes.html

38 lines
837 B
HTML
Raw Normal View History

2017-07-28 19:36:14 +00:00
<div class="results-container">
<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 }}
{{ end }}
2017-07-28 19:36:14 +00:00
</div>
<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>
</tr>
</thead>
<tbody>
2017-07-06 17:09:49 +00:00
{{ range $i, $v := .TemplateData.AllVotes }}
<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>
</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>
</table>