Global: Don't show votes-balance noticebox to people who don't have votes

This commit is contained in:
Maxim Leshchenko 2022-04-18 20:59:54 +02:00
parent be6a6610b1
commit c88cfcf314
No known key found for this signature in database
GPG key ID: BB9C44A8733FBEEE

View file

@ -187,9 +187,9 @@
<a n:foreach="$thisUser->getPinnedClubs() as $club" href="{$club->getURL()}" class="link group_link">{$club->getName()}</a> <a n:foreach="$thisUser->getPinnedClubs() as $club" href="{$club->getURL()}" class="link group_link">{$club->getName()}</a>
</div> </div>
<div n:if="OPENVK_ROOT_CONF['openvk']['preferences']['commerce']" id="votesBalance"> <div n:if="OPENVK_ROOT_CONF['openvk']['preferences']['commerce'] && $thisUser->getCoins() != 0" id="votesBalance">
{tr("you_still_have_x_points", $thisUser->getCoins())|noescape} {tr("you_still_have_x_points", $thisUser->getCoins())|noescape}
<br/><br/> <br /><br />
<a href="/settings?act=finance">{_top_up_your_account} &#xbb;</a> <a href="/settings?act=finance">{_top_up_your_account} &#xbb;</a>
</div> </div>