Revert "Fix bug with rating display"

This reverts commit 00fac4fe66.
This commit is contained in:
veselcraft 2021-10-09 22:10:31 +03:00
parent 00fac4fe66
commit 2c118e3179

View file

@ -122,8 +122,8 @@
<div n:if="isset($thisUser) && !$thisUser->prefersNotToSeeRating()" class="profile-hints"> <div n:if="isset($thisUser) && !$thisUser->prefersNotToSeeRating()" class="profile-hints">
{var completeness = $user->getProfileCompletenessReport()} {var completeness = $user->getProfileCompletenessReport()}
<div n:class="completeness-gauge, $completeness->total >= 100 ? completeness-gauge-gold"> <div class="completeness-gauge {if $completeness->total >= 100}completeness-gauge-gold{/if}">
<div style="width: {$completeness->percent}%;"></div> <div style="width: {if ($completeness->total >= 100)}{round(($completeness->total / 10**strlen(strval($completeness->total))) * 100, 0)}{else}{$completeness->percent}{/if}%"></div>
<span>{$completeness->total}%</span> <span>{$completeness->total}%</span>
</div> </div>