mirror of
https://github.com/openvk/openvk
synced 2024-12-22 16:42:32 +03:00
Profile: Little bit of refactoring
This commit is contained in:
parent
2c118e3179
commit
d2b572818f
1 changed files with 1 additions and 1 deletions
|
@ -122,7 +122,7 @@
|
|||
<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 class="completeness-gauge, $completeness->total >= 100 ? completeness-gauge-gold">
|
||||
<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>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue