Merge branch '5.2' into 5.3
[GitHub/WoltLab/WCF.git] / com.woltlab.wcf / templates / pollResult.tpl
1 <ol class="pollResultList">
2 {foreach from=$poll->getOptions(true) item=option}
3 <li class="pollResultItem">
4 <div class="pollResultItemCaption">
5 <span class="pollOptionName">{$option->optionValue} ({#$option->votes})</span>
6 <span class="pollOptionRelativeValue">{@$option->getRelativeVotes($poll)}%</span>
7 </div>
8 <div class="pollMeter">
9 <div class="pollMeterValue" style="width: {if $option->getRelativeVotes($poll)}{@$option->getRelativeVotes($poll)}%{else}0{/if}"></div>
10 </div>
11 </li>
12 {/foreach}
13 </ol>
14
15 {if $poll->endTime && !$poll->isFinished()}
16 <p><small>{lang}wcf.poll.endTimeInfo{/lang}</small></p>
17 {/if}