{{ define "voting" }} {{ template "head" . }}
{{ .Voting.Deadline }}
{{ if .Voting.IsOpen }} {{ template "vote_form" . }} {{ else }} {{ template "voting_result" . }} {{ end }}Quorum | Threshold | Anonymous |
---|---|---|
{{ .Voting.Quorum }} | {{ .Voting.Threshold }} | {{ if .Voting.Anonymous }} YES {{ else }} NO {{ end }} |
{{ .Voting.Result.Yes }} | {{ .Voting.Result.No }} | {{ .Voting.Result.Abstain }} |
ACCEPTED
{{ else }}REJECTED
{{ end }} {{ if .Voting.Result.Quorum }}Quorum: REACHED
{{ else }}Quorum: FAILED
{{ end }}{{ $vote.Choice }} | {{ $vote.Elector }} | {{ $vote.Id }} |