cacert-boardvoting/templates/motions.html

46 lines
1.3 KiB
HTML
Raw Normal View History

{{ template "header" . }}
{{ $voter := .Voter }}
{{ if .Params.Flags.Unvoted }}
<a href="/motions/">Show all votes</a>
{{ else if $voter }}
<a href="/motions/?unvoted=1">Show my pending votes</a><br/>
{{ end }}
2017-04-15 17:23:40 +00:00
{{ if .Decisions }}
<table class="list">
<thead>
<tr>
<th>Status</th>
<th>Motion</th>
{{ if $voter }}<th>Actions</th>{{ end }}
2017-04-15 17:23:40 +00:00
</tr>
</thead>
<tbody>
{{range .Decisions }}
<tr>
{{ template "motion_fragment" . }}
{{ if $voter }}{{ template "motion_actions" . }}{{ end }}
2017-04-15 17:23:40 +00:00
</tr>
{{end}}
<tr>
<td colspan="2" class="navigation">
{{ if .PrevPage }}<a href="?page={{ .PrevPage }}{{ if .Params.Flags.Unvoted }}&unvoted=1{{ end }}" title="previous page">&lt;</a>{{ end }}
{{ if .NextPage }}<a href="?page={{ .NextPage }}{{ if .Params.Flags.Unvoted }}&unvoted=1{{ end }}" title="next page">&gt;</a>{{ end }}
</td>
{{ if $voter }}
<td class="actions">
<ul>
<li><a href="/newmotion/">New Motion</a></li>
</ul>
</td>
{{ end }}
</tr>
2017-04-15 17:23:40 +00:00
</tbody>
</table>
{{else}}
{{ if .Params.Flags.Unvoted }}
<p>There are no motions requiring a vote from you.</p>
{{ else }}
2017-04-15 17:23:40 +00:00
<p>There are no motions in the system yet.</p>
{{ end }}
2017-04-15 17:23:40 +00:00
{{end}}
{{ template "footer" . }}