summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/create_motion_mail.txt25
-rw-r--r--templates/motions.html6
2 files changed, 28 insertions, 3 deletions
diff --git a/templates/create_motion_mail.txt b/templates/create_motion_mail.txt
new file mode 100644
index 0000000..f26577e
--- /dev/null
+++ b/templates/create_motion_mail.txt
@@ -0,0 +1,25 @@
+From: {{ .Sender }}
+To: {{ .Recipient }}
+Subject: {{ .Tag }} - {{ .Title }}
+
+Dear Board,
+
+{{ .Name }} has made the following motion:
+
+{{ .Title }}
+{{ .Content }}
+
+Vote type: {{ .VoteType }}
+
+Voting will close {{ .Due }}
+
+To vote please choose:
+
+Aye: {{ .VoteURL }}/aye
+Naye: {{ .VoteURL }}/naye
+Abstain: {{ .VoteURL }}/abstain
+
+To see all your pending votes: {{ .UnvotedURL }}
+
+Kind regards,
+the voting system \ No newline at end of file
diff --git a/templates/motions.html b/templates/motions.html
index 414c399..e5279bd 100644
--- a/templates/motions.html
+++ b/templates/motions.html
@@ -3,7 +3,7 @@
{{ if .Params.Flags.Unvoted }}
<a href="/motions/">Show all votes</a>
{{ else if $voter }}
-<a href="/motions/?unvoted=1">Show my outstanding votes</a><br/>
+<a href="/motions/?unvoted=1">Show my pending votes</a><br/>
{{ end }}
{{ if .Decisions }}
<table class="list">
@@ -23,8 +23,8 @@
{{end}}
<tr>
<td colspan="2" class="navigation">
- {{ if .PrevPage }}<a href="?page={{ .PrevPage }}" title="previous page">&lt;</a>{{ end }}
- {{ if .NextPage }}<a href="?page={{ .NextPage }}" title="next page">&gt;</a>{{ end }}
+ {{ 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">