Commit 694cf83d authored by Riccardo Padovani's avatar Riccardo Padovani

Merged lp:~pietro98-albini/ubuntu-it-ask/fix-lp1211675

parents d9887570 5ddff44d
{% load i18n extra_filters %}{% spaceless %}
{% if not user.is_suspended %}
{% ifequal format "full" %}
{% else %}
<a href="{{ user.get_absolute_url }}">{{ user.decorated_name }}</a>
<span class="score" title="{{ user.reputation }} {% trans "reputation" %}">{{ user.reputation|decorated_int:"" }}</span>
{% ifequal format "badges" %}
{% if user.gold %}
<span title="{{ user.gold }} {% trans "badges" %}">
<span class="gold">&#9679;</span>
<span class="badgecount">{{ user.gold }}</span>
</span>
{% endif %}
{% if user.silver %}
<span title="{{ user.silver }} {% trans "badges" %}">
<span class="silver">&#9679;</span>
<span class="badgecount">{{ user.silver }}</span>
</span>
{% endif %}
{% if user.bronze %}
<span title="{{ user.bronze }} {% trans "badges" %}">
<span class="bronze">&#9679;</span>
<span class="badgecount">{{ user.bronze }}</span>
</span>
{% endif %}
{% endifequal %}
{% endifequal %}
{% else %}
<a class="suspended-user" href="{{ user.get_absolute_url }}">{{ user.decorated_name }}</a>{% trans "(suspended)" %}
{% endif %}
{% endspaceless %}
......@@ -58,7 +58,7 @@ def _get_score_badge(user):
BADGE_TEMPLATE = '<span class="score" title="%(reputation)s %(reputationword)s">%(repstr)s</span>'
if user.gold > 0 :
BADGE_TEMPLATE = '%s%s' % (BADGE_TEMPLATE, '<span title="%(gold)s %(badgesword)s">'
'<span class="badge1">&#9679;</span>'
'<span class="gold">&#9679;</span>'
'<span class="badgecount">%(gold)s</span>'
'</span>')
if user.silver > 0:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment