diff options
Diffstat (limited to 'web')
| -rw-r--r-- | web/template/status_poll.tmpl | 4 | 
1 files changed, 4 insertions, 0 deletions
diff --git a/web/template/status_poll.tmpl b/web/template/status_poll.tmpl index f6acecfa0..d26046283 100644 --- a/web/template/status_poll.tmpl +++ b/web/template/status_poll.tmpl @@ -47,6 +47,9 @@  				<meter aria-hidden="true" id="poll-{{- $pollOption.PollID -}}-option-{{- increment $index -}}" min="0" max="100" value="{{- $pollOption.VoteShare -}}">{{- $pollOption.VoteShare -}}%</meter>  				<div class="sr-only">Option {{ increment $index }}: <span lang="{{ .LanguageTag.TagStr }}">{{ emojify .Emojis (noescape $pollOption.Title) -}}</span></div>  				<div class="poll-vote-summary"> +					{{- if isNil $pollOption.VotesCount }} +					Results not yet published. +					{{- else -}}  					<span class="poll-vote-share">{{- $pollOption.VoteShareStr -}}%</span>  					<span class="poll-vote-count">  						{{- if eq $pollOption.VotesCount 1 -}} @@ -55,6 +58,7 @@  							{{- $pollOption.VotesCount }} votes  						{{- end -}}  					</span> +					{{- end -}}  				</div>  			</li>  		{{- end }}  | 
