Merge pull request #1333 from WoltLab/codemirror
[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 <span class="pollMeter" style="width: {if $option->getRelativeVotes($poll)}{@$option->getRelativeVotes($poll)}%{else}0{/if}">&nbsp;</span>
5 <div class="caption">
6 <span class="optionName">
7 {$option->optionValue} ({#$option->votes})</span>
8 <span class="relativeVotes">{@$option->getRelativeVotes($poll)}%</span>
9 </span>
10 </div>
11 </li>
12 {/foreach}
13 </ol>