poll
{tr "poll"}: {$postlistPoll.question}
{if $postlistPoll.options}
{foreach $option in $postlistPoll.options}
{endforeach}
{endif}{-- $postlistPoll.options} {if $postlistPoll.votes}
{if $postlistPoll.users}
{tr "poll.users have voted"}:
{endif} {foreach $vote in $postlistPoll.votes}
({trnum "poll.vote details" $vote.count "count" $vote.count "percent" $vote.percentPadded}) {$vote.text}
{if $postlistPoll.users}
{set $x ""} {foreach $user in $postlistPoll.users} {if eq $user.voteId $vote.voteId} {$x}{$user.userName}{set $x ", "} {endif} {endforeach}
{endif} {endforeach}
{endif}{-- $postlistPoll.votes}
{set $div ""} {if $postlistPoll.ended} {tr "poll.ended time" "time" $postlistPoll.endTime} {set $div " · "} {elseif $postlistPoll.unlimited} {tr "poll.no timelimit"} {set $div " · "} {else}{-- still running} {tr "poll.ends time" "time" $postlistPoll.endTime "abstime" $postlistPoll.endTimeAbs} {set $div " · "} {endif} {$div}{trnum "poll.n votes" $postlistPoll.sumcount "n" $postlistPoll.sumcount} {set $div " · "} {if $postlistPoll.resultsLink} {$div} {tr "poll.show results"} {set $div " · "} {endif} {if $postlistPoll.unvoteLink} {$div} {tr "poll.cancel vote"} {set $div " · "} {elseif $postlistPoll.voteLink} {$div} {tr "poll.back to voting"} {set $div " · "} {endif} {if $postlistPoll.showUsersLink} {$div} {tr "poll.show users"} {set $div " · "} {endif}
{set $ShadowBottomOffset 12} {include "_shadow_bottom.html"}