Jan Dittberner
4d23b6a48f
This commit switches from loggo to the more flexible go-logging framework. Logs of severity INFO or higher are now written to a separate boardvoting.log file. Errors during execution of mail templates are now logged. A reasoning for the vote result is now logged and put into the mail notification when a decision is closed.
20 lines
No EOL
413 B
Text
20 lines
No EOL
413 B
Text
Dear Board,
|
|
|
|
{{ with .Decision }}The motion with the identifier {{.Tag}} has been {{.Status}}.{{ end }}
|
|
|
|
The reasoning for this result is: {{ .Reasoning }}
|
|
|
|
{{ with .Decision }}Motion:
|
|
{{.Title}}
|
|
{{.Content}}
|
|
|
|
Vote type: {{.VoteType}}{{end}}
|
|
|
|
{{ with .VoteSums }} Ayes: {{ .Ayes }}
|
|
Nayes: {{ .Nayes }}
|
|
Abstentions: {{ .Abstains }}
|
|
|
|
Percentage: {{ .Percent }}%{{ end }}
|
|
|
|
Kind regards,
|
|
the voting system. |