diff --git a/tmpl/voting.html b/tmpl/voting.html
index fcc9626..cca8e2b 100644
--- a/tmpl/voting.html
+++ b/tmpl/voting.html
@@ -122,28 +122,26 @@
Quorum: FAILED
{{ end }}
- {{ if not .Voting.Anonymous }}
-
-
-
- VOTES
-
-
- {{ range $vote := .Voting.Votes }}
-
-
- {{ $vote.Choice }}
- |
-
- {{ $vote.Elector }}
- |
-
- {{ $vote.Id }}
- |
-
- {{ end }}
-
-
-
- {{ end }}
+
+
+
+ VOTES
+
+
+ {{ range $vote := .Voting.Votes }}
+
+
+ {{ $vote.Choice }}
+ |
+
+ {{ $vote.Elector }}
+ |
+
+ {{ $vote.Id }}
+ |
+
+ {{ end }}
+
+
+
{{ end }}
diff --git a/voting/main.go b/voting/main.go
index 7f5bccc..d26926b 100644
--- a/voting/main.go
+++ b/voting/main.go
@@ -187,6 +187,13 @@ nextVote:
}
votes = append(votes, v.votes[i])
}
+
+ // anonymize
+ if v.annonymous {
+ for i := range votes {
+ votes[i].Elector = ""
+ }
+ }
return votes
}