From: Alexander Ebert Date: Fri, 3 Jun 2016 22:47:16 +0000 (+0200) Subject: Preset button states to prevent layout jumps X-Git-Tag: 3.0.0_Beta_1~1533 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c95a9bf18155cee1b3c2a070040529179803512c;p=GitHub%2FWoltLab%2FWCF.git Preset button states to prevent layout jumps --- diff --git a/com.woltlab.wcf/templates/poll.tpl b/com.woltlab.wcf/templates/poll.tpl index e6285440f8..4d78b4a151 100644 --- a/com.woltlab.wcf/templates/poll.tpl +++ b/com.woltlab.wcf/templates/poll.tpl @@ -16,14 +16,18 @@
{if !$__wcf->getUser()->userID} {if $poll->canSeeResult()} + {assign var='__pollView' value='result'} {include file='pollResult'} {else} + {assign var='__pollView' value='vote'} {include file='pollVote'} {/if} {else} {if $poll->canVote() && !$poll->isParticipant()} + {assign var='__pollView' value='vote'} {include file='pollVote'} {else} + {assign var='__pollView' value='result'} {include file='pollResult'} {/if} {/if} @@ -33,15 +37,14 @@ {hascontent} -
+
canVote() && $__pollView === 'result'} style="display: none"{/if}> {content} {if $__wcf->getUser()->userID} - - - + + {/if} {if $poll->canViewParticipants()} - + {/if} {event name='pollButtons'}