Users: Hide button to increase rating if display of rating is disabled in settings

Closes #504
This commit is contained in:
Maxim Leshchenko 2022-03-27 12:11:29 +02:00
parent f1d923f580
commit c55bb779cc
No known key found for this signature in database
GPG key ID: BB9C44A8733FBEEE

View file

@ -72,7 +72,7 @@
<div id="profile_link" style="width: 194px;">
<a href="/edit" class="link">{_"edit_page"}</a>
</div>
<div n:if="OPENVK_ROOT_CONF['openvk']['preferences']['commerce']" id="profile_link" style="width: 194px;">
<div n:if="OPENVK_ROOT_CONF['openvk']['preferences']['commerce'] && !$thisUser->prefersNotToSeeRating()" id="profile_link" style="width: 194px;">
<a onClick="showIncreaseRatingDialog({$thisUser->getCoins()}, {ltrim($thisUser->getUrl(), '/')}, {$csrfToken})" class="link">{_increase_rating}</a>
</div>
{else}