Skip to content

Commit 5f37b4c

Browse files
committed
Remove unnecessary @ and replace all other @ with unsafe:
1 parent 0be2165 commit 5f37b4c

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

com.woltlab.wcf/templates/poll.tpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
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>

com.woltlab.wcf/templates/pollResult.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
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}

com.woltlab.wcf/templates/pollVote.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
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>

0 commit comments

Comments
 (0)