Edit displaying rating and points rank for unlisted (#115)
* Edit displaying rating and points rank for unlisted * Edit rating/points rank of unlisted users and cache get_rank functions
This commit is contained in:
parent
570c3071ee
commit
46c950dc37
6 changed files with 25 additions and 19 deletions
|
@ -33,15 +33,13 @@
|
|||
{{ request.profile.performance_points|floatformat(0) }}
|
||||
</span></div>
|
||||
</div>
|
||||
{% if not request.profile.is_unlisted %}
|
||||
<div class="user-info">
|
||||
<div title="{{_('Rank by rating')}}"><i class="fa fa-globe peru" ></i> {{_('Rating')}} #</div>
|
||||
<div class="user-info-body">{{rating_rank if rating_rank else '-'}}</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="user-info">
|
||||
<div title="{{_('Rank by rating')}}"><i class="fa fa-globe peru" ></i> {{_('Rating')}} #</div>
|
||||
<div class="user-info-body">{{rating_rank if rating_rank else '-'}}</div>
|
||||
</div>
|
||||
<div class="user-info">
|
||||
<div title="{{_('Rank by points')}}"><i class="fa fa-globe blue" ></i> {{_('Points')}} #</div>
|
||||
<div class="user-info-body">{{points_rank}}</div>
|
||||
<div class="user-info-body">{{points_rank if points_rank else '-'}}</div>
|
||||
</div>
|
||||
|
||||
{% if awards.medals %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue