46 lines
No EOL
1.2 KiB
HTML
46 lines
No EOL
1.2 KiB
HTML
{{ template "header" . }}
|
|
{{ if .Params.Flags.Unvoted }}
|
|
<a href="/motions/">Show all votes</a>
|
|
{{ else }}
|
|
<a href="/motions/?unvoted=1">Show my outstanding votes</a><br/>
|
|
{{ end }}
|
|
{{ $voter := .Voter }}
|
|
{{ if .Decisions }}
|
|
<table class="list">
|
|
<thead>
|
|
<tr>
|
|
<th>Status</th>
|
|
<th>Motion</th>
|
|
{{ if $voter }}<th>Actions</th>{{ end }}
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{{range .Decisions }}
|
|
<tr>
|
|
{{ template "motion_fragment" . }}
|
|
{{ if $voter }}{{ template "motion_actions" . }}{{ end }}
|
|
</tr>
|
|
{{end}}
|
|
<tr>
|
|
<td colspan="2" class="navigation">
|
|
{{ if .PrevPage }}<a href="?page={{ .PrevPage }}" title="previous page"><</a>{{ end }}
|
|
{{ if .NextPage }}<a href="?page={{ .NextPage }}" title="next page">></a>{{ end }}
|
|
</td>
|
|
{{ if $voter }}
|
|
<td class="actions">
|
|
<ul>
|
|
<li><a href="/newmotion/">New Motion</a></li>
|
|
</ul>
|
|
</td>
|
|
{{ end }}
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
{{else}}
|
|
{{ if .Params.Flags.Unvoted }}
|
|
<p>There are no motions requiring a vote from you.</p>
|
|
{{ else }}
|
|
<p>There are no motions in the system yet.</p>
|
|
{{ end }}
|
|
{{end}}
|
|
{{ template "footer" . }} |