From c95a9bf18155cee1b3c2a070040529179803512c Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sat, 4 Jun 2016 00:47:16 +0200 Subject: [PATCH] Preset button states to prevent layout jumps --- com.woltlab.wcf/templates/poll.tpl | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) 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'} -- 2.20.1