Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
website
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gruppo Ask
website
Commits
5ddff44d
Commit
5ddff44d
authored
Aug 13, 2013
by
Pietro Albini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restored gold badges icon
parent
7614bedd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
1 deletion
+34
-1
forum/skins/light/templates/users/signature.html
forum/skins/light/templates/users/signature.html
+33
-0
forum/templatetags/extra_tags.py
forum/templatetags/extra_tags.py
+1
-1
No files found.
forum/skins/light/templates/users/signature.html
0 → 100644
View file @
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"
>
●
</span>
<span
class=
"badgecount"
>
{{ user.gold }}
</span>
</span>
{% endif %}
{% if user.silver %}
<span
title=
"{{ user.silver }} {% trans "
badges
"
%}"
>
<span
class=
"silver"
>
●
</span>
<span
class=
"badgecount"
>
{{ user.silver }}
</span>
</span>
{% endif %}
{% if user.bronze %}
<span
title=
"{{ user.bronze }} {% trans "
badges
"
%}"
>
<span
class=
"bronze"
>
●
</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 %}
forum/templatetags/extra_tags.py
View file @
5ddff44d
...
@@ -58,7 +58,7 @@ def _get_score_badge(user):
...
@@ -58,7 +58,7 @@ def _get_score_badge(user):
BADGE_TEMPLATE
=
'<span class="score" title="%(reputation)s %(reputationword)s">%(repstr)s</span>'
BADGE_TEMPLATE
=
'<span class="score" title="%(reputation)s %(reputationword)s">%(repstr)s</span>'
if
user
.
gold
>
0
:
if
user
.
gold
>
0
:
BADGE_TEMPLATE
=
'%s%s'
%
(
BADGE_TEMPLATE
,
'<span title="%(gold)s %(badgesword)s">'
BADGE_TEMPLATE
=
'%s%s'
%
(
BADGE_TEMPLATE
,
'<span title="%(gold)s %(badgesword)s">'
'<span class="
badge1
">●</span>'
'<span class="
gold
">●</span>'
'<span class="badgecount">%(gold)s</span>'
'<span class="badgecount">%(gold)s</span>'
'</span>'
)
'</span>'
)
if
user
.
silver
>
0
:
if
user
.
silver
>
0
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment