Skip to content

Commit

Permalink
Don't display vote counts when the max is 1
Browse files Browse the repository at this point in the history
  • Loading branch information
achlipala committed Feb 10, 2015
1 parent 92f007f commit 465cd4a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion openBallot.ur
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,9 @@ functor Make(M : sig
<xml><button class="btn glyphicon glyphicon-chevron-left"
onclick={fn _ => set ch.ShowVoters False}/></xml>}

{List.mapX (fn (k, n) => <xml><br/>{[k]} ({[n]})</xml>) votes}
{List.mapX (fn (k, n) => <xml><br/>{[k]}{case maxVotesPerVoter of
Some 1 => <xml/>
| _ => <xml> ({[n]})</xml>}</xml>) votes}
</xml> else <xml>
<button class="btn glyphicon glyphicon-chevron-right"
onclick={fn _ => set ch.ShowVoters True}/>
Expand Down

0 comments on commit 465cd4a

Please sign in to comment.