diff options
Diffstat (limited to 'web')
-rw-r--r-- | web/template/status_poll.tmpl | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/web/template/status_poll.tmpl b/web/template/status_poll.tmpl index d26046283..a900f5e74 100644 --- a/web/template/status_poll.tmpl +++ b/web/template/status_poll.tmpl @@ -50,15 +50,17 @@ {{- if isNil $pollOption.VotesCount }} Results not yet published. {{- else -}} + {{- with deref $pollOption.VotesCount }} <span class="poll-vote-share">{{- $pollOption.VoteShareStr -}}%</span> <span class="poll-vote-count"> - {{- if eq $pollOption.VotesCount 1 -}} - {{- $pollOption.VotesCount }} vote + {{- if eq . 1 -}} + {{- . }} vote {{- else -}} - {{- $pollOption.VotesCount }} votes + {{- . }} votes {{- end -}} </span> {{- end -}} + {{- end }} </div> </li> {{- end }} |