✨ Better voting result
This commit is contained in:
parent
7d34b00955
commit
a25380193f
2 changed files with 29 additions and 24 deletions
|
@ -122,7 +122,6 @@
|
||||||
Quorum: FAILED
|
Quorum: FAILED
|
||||||
</p>
|
</p>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if not .Voting.Anonymous }}
|
|
||||||
<div class="relative overflow-x-auto py-4">
|
<div class="relative overflow-x-auto py-4">
|
||||||
<table class="w-full text-sm text-left rtl:text-right text-gray-400 text-center mt-4">
|
<table class="w-full text-sm text-left rtl:text-right text-gray-400 text-center mt-4">
|
||||||
<thead cols=3>
|
<thead cols=3>
|
||||||
|
@ -145,5 +144,4 @@
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -187,6 +187,13 @@ nextVote:
|
||||||
}
|
}
|
||||||
votes = append(votes, v.votes[i])
|
votes = append(votes, v.votes[i])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// anonymize
|
||||||
|
if v.annonymous {
|
||||||
|
for i := range votes {
|
||||||
|
votes[i].Elector = ""
|
||||||
|
}
|
||||||
|
}
|
||||||
return votes
|
return votes
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue