Merge lp:~pietroalbini/ubuntu-it-ask/fix-lp1211675 into lp:ubuntu-it-ask

Proposed by Pietro Albini
Status: Merged
Merged at revision: 89
Proposed branch: lp:~pietroalbini/ubuntu-it-ask/fix-lp1211675
Merge into: lp:ubuntu-it-ask
Diff against target: 50 lines (+34/-1)
2 files modified
forum/skins/light/templates/users/signature.html (+33/-0)
forum/templatetags/extra_tags.py (+1/-1)
To merge this branch: bzr merge lp:~pietroalbini/ubuntu-it-ask/fix-lp1211675
Reviewer Review Type Date Requested Status
Riccardo Padovani Approve
Review via email: mp+179880@code.launchpad.net

Description of the change

Fixed bug 1211675.
Restored gold badges icon.

To post a comment you must log in.
Revision history for this message
Riccardo Padovani (rpadovani) wrote :

Works good for me, thanks!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== added file 'forum/skins/light/templates/users/signature.html'
--- forum/skins/light/templates/users/signature.html 1970-01-01 00:00:00 +0000
+++ forum/skins/light/templates/users/signature.html 2013-08-13 09:30:31 +0000
@@ -0,0 +1,33 @@
1{% load i18n extra_filters %}{% spaceless %}
2
3{% if not user.is_suspended %}
4 {% ifequal format "full" %}
5
6 {% else %}
7 <a href="{{ user.get_absolute_url }}">{{ user.decorated_name }}</a>
8 <span class="score" title="{{ user.reputation }} {% trans "reputation" %}">{{ user.reputation|decorated_int:"" }}</span>
9 {% ifequal format "badges" %}
10 {% if user.gold %}
11 <span title="{{ user.gold }} {% trans "badges" %}">
12 <span class="gold">&#9679;</span>
13 <span class="badgecount">{{ user.gold }}</span>
14 </span>
15 {% endif %}
16 {% if user.silver %}
17 <span title="{{ user.silver }} {% trans "badges" %}">
18 <span class="silver">&#9679;</span>
19 <span class="badgecount">{{ user.silver }}</span>
20 </span>
21 {% endif %}
22 {% if user.bronze %}
23 <span title="{{ user.bronze }} {% trans "badges" %}">
24 <span class="bronze">&#9679;</span>
25 <span class="badgecount">{{ user.bronze }}</span>
26 </span>
27 {% endif %}
28 {% endifequal %}
29 {% endifequal %}
30{% else %}
31 <a class="suspended-user" href="{{ user.get_absolute_url }}">{{ user.decorated_name }}</a>{% trans "(suspended)" %}
32{% endif %}
33{% endspaceless %}
034
=== modified file 'forum/templatetags/extra_tags.py'
--- forum/templatetags/extra_tags.py 2012-08-19 11:02:51 +0000
+++ forum/templatetags/extra_tags.py 2013-08-13 09:30:31 +0000
@@ -58,7 +58,7 @@
58 BADGE_TEMPLATE = '<span class="score" title="%(reputation)s %(reputationword)s">%(repstr)s</span>'58 BADGE_TEMPLATE = '<span class="score" title="%(reputation)s %(reputationword)s">%(repstr)s</span>'
59 if user.gold > 0 :59 if user.gold > 0 :
60 BADGE_TEMPLATE = '%s%s' % (BADGE_TEMPLATE, '<span title="%(gold)s %(badgesword)s">'60 BADGE_TEMPLATE = '%s%s' % (BADGE_TEMPLATE, '<span title="%(gold)s %(badgesword)s">'
61 '<span class="badge1">&#9679;</span>'61 '<span class="gold">&#9679;</span>'
62 '<span class="badgecount">%(gold)s</span>'62 '<span class="badgecount">%(gold)s</span>'
63 '</span>')63 '</span>')
64 if user.silver > 0:64 if user.silver > 0:

Subscribers

People subscribed via source and target branches