2018-03-29 19:26:12 +00:00
|
|
|
{{ template "header.html" . }}
|
2017-04-17 21:11:45 +00:00
|
|
|
{{ $voter := .Voter }}
|
2019-08-02 23:39:55 +00:00
|
|
|
{{ $page := . }}
|
|
|
|
<div class="ui basic segment">
|
|
|
|
<div class="ui secondary pointing menu">
|
|
|
|
<a href="/motions/" class="{{ if not .Params.Flags.Unvoted }}active {{ end }}item" title="Show all votes">All
|
|
|
|
votes</a>
|
|
|
|
{{ if $voter }}
|
|
|
|
<a href="/motions/?unvoted=1" class="{{ if .Params.Flags.Unvoted }}active {{ end}}item"
|
|
|
|
title="Show my outstanding votes">My outstanding votes</a>
|
|
|
|
<div class="right item">
|
|
|
|
<a class="ui primary button" href="/newmotion/">New motion</a>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
2017-04-29 20:17:58 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2017-04-15 17:23:40 +00:00
|
|
|
{{ if .Decisions }}
|
2019-08-02 23:39:55 +00:00
|
|
|
<div class="ui labeled icon menu">
|
|
|
|
{{ template "pagination_fragment" $page }}
|
|
|
|
</div>
|
2017-04-29 20:17:58 +00:00
|
|
|
{{ range .Decisions }}
|
2017-04-30 00:37:29 +00:00
|
|
|
<div class="ui raised segment">
|
2019-08-02 23:39:55 +00:00
|
|
|
{{ template "motion_fragment" . }}
|
|
|
|
{{ if $voter }}{{ template "motion_actions" . }}{{ end }}
|
2017-04-30 00:37:29 +00:00
|
|
|
</div>
|
|
|
|
{{ end }}
|
2019-08-02 23:39:55 +00:00
|
|
|
<div class="ui labeled icon menu">
|
|
|
|
{{ template "pagination_fragment" $page }}
|
2017-04-30 00:37:29 +00:00
|
|
|
</div>
|
2017-04-17 14:24:37 +00:00
|
|
|
{{ else }}
|
2019-08-02 23:39:55 +00:00
|
|
|
<div class="ui basic segment">
|
|
|
|
<div class="ui icon message">
|
|
|
|
<i class="inbox icon"></i>
|
|
|
|
<div class="content">
|
|
|
|
<div class="header">No motions available</div>
|
|
|
|
{{ 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 }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-04-17 14:24:37 +00:00
|
|
|
{{ end }}
|
2018-03-29 19:26:12 +00:00
|
|
|
{{ template "footer.html" . }}
|