File tree Expand file tree Collapse file tree
com.woltlab.wcf/templates Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77 </script >
88{ /if }
99
10- <div id =" poll{ @ $poll -> pollID } " class =" pollContainer{ if POLL_FULL_WIDTH} pollContainerFullWidth{ /if } " { *
11- *} data-poll-id =" { @ $poll -> pollID } " { *
10+ <div id =" poll{ $poll -> pollID } " class =" pollContainer{ if POLL_FULL_WIDTH} pollContainerFullWidth{ /if } " { *
11+ *} data-poll-id =" { $poll -> pollID } " { *
1212 *} data-can-vote =" { if $poll -> canVote ()} true{ else } false{ /if } " { *
1313 *} data-can-view-result =" { if $poll -> canSeeResult ()} true{ else } false{ /if } " { *
1414 *} data-can-view-participants =" { if $poll -> canViewParticipants ()} true{ else } false{ /if } " { *
1515 *} data-in-vote =" { if $poll -> canVote () && ! $poll -> isParticipant ()} true{ else } false{ /if } " { *
1616 *} data-question =" { $poll -> question } " { *
17- *} data-max-votes =" { @ $poll -> maxVotes } " { *
17+ *} data-max-votes =" { $poll -> maxVotes } " { *
1818 *} data-is-public =" { if $poll -> isPublic } true{ else } false{ /if } " >
1919 <section >
2020 <h2 >{ $poll -> question } <span class =" badge jsTooltip pollTotalVotesBadge" title =" { lang} wcf.poll.totalVotes{ /lang} " >{ #$poll -> votes } </span ></h2 >
Original file line number Diff line number Diff line change 33 <li class =" pollResultItem" >
44 <div class =" pollResultItemCaption" >
55 <span class =" pollOptionName" >{ $option -> optionValue } ({ #$option -> votes } )</span >
6- <span class =" pollOptionRelativeValue" >{ @ $option -> getRelativeVotes ($poll )} %</span >
6+ <span class =" pollOptionRelativeValue" >{ $option -> getRelativeVotes ($poll )} %</span >
77 </div >
88 <div class =" pollMeter" >
9- <div class =" pollMeterValue" style =" width : {if $option->getRelativeVotes($poll)}{@ $option- >getRelativeVotes ($poll )}%{else }0{/if }" ></div >
9+ <div class =" pollMeterValue" style =" width : {if $option->getRelativeVotes($poll)}{$option- >getRelativeVotes ($poll )}%{else }0{/if }" ></div >
1010 </div >
1111 </li >
1212 { /foreach }
Original file line number Diff line number Diff line change 1- <dl class =" wide pollVoteContainer" data-max-votes =" { @ $poll -> maxVotes } " >
1+ <dl class =" wide pollVoteContainer" data-max-votes =" { $poll -> maxVotes } " >
22 { foreach from= $poll -> getOptions () item= option}
33 <dt ></dt >
44 <dd >
55 <label >
6- { if $poll -> canVote ()} <input type =" { if $poll -> maxVotes > 1} checkbox{ else } radio{ /if } " name =" pollOptions{ @ $poll -> pollID } []" value =" { $option -> optionID } " { if $option -> voted } checked{ /if} >{ /if }
6+ { if $poll -> canVote ()} <input type =" { if $poll -> maxVotes > 1} checkbox{ else } radio{ /if } " name =" pollOptions{ $poll -> pollID } []" value =" { $option -> optionID } " { if $option -> voted } checked{ /if} >{ /if }
77 { $option -> optionValue }
88 </label >
99 </dd >
You can’t perform that action at this time.
0 commit comments