Fix bug with rating display

This commit is contained in:
celestora 2021-10-09 22:05:46 +03:00 committed by GitHub
parent c17c3382a0
commit 00fac4fe66
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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