1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-06-28 20:45:00 +03:00

Fixes #491 Если срок голосования истек, то все равно показываются кнопки для голосования

This commit is contained in:
Denis Shakhov 2014-07-24 23:51:53 +07:00
parent f67e6a8636
commit 9a0c1d0f24

View file

@ -91,13 +91,15 @@
{block 'entry_footer_info_items'}
{* Голосование *}
<li class="topic-info-item topic-info-item-vote">
{$isExpired = strtotime($oTopic->getDateAdd()) < $smarty.now - Config::Get('acl.vote.topic.limit_time')}
{include 'components/vote/vote.tpl'
oObject = $oTopic
sClasses = 'js-vote-topic'
sMods = 'small white topic'
bUseAbstain = true
bIsLocked = $oUserCurrent && $oTopic->getUserId() == $oUserCurrent->getId()
bShowRating = $oTopic->getVote() || ($oUserCurrent && $oTopic->getUserId() == $oUserCurrent->getId()) || strtotime($oTopic->getDateAdd()) < $smarty.now - Config::Get('acl.vote.topic.limit_time')}
bIsLocked = ( $oUserCurrent && $oTopic->getUserId() == $oUserCurrent->getId() ) || $isExpired
bShowRating = $oTopic->getVote() || ($oUserCurrent && $oTopic->getUserId() == $oUserCurrent->getId()) || $isExpired}
</li>
{$smarty.block.parent}