summaryrefslogtreecommitdiff
path: root/web/template
diff options
context:
space:
mode:
Diffstat (limited to 'web/template')
-rw-r--r--web/template/status_poll.tmpl8
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 -}}&#37;</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 }}