Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
1dde3554
Commit
1dde3554
authored
Mar 21, 2014
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove no longer used avatar template tag
Signed-off-by:
Michal Čihař
<
michal@cihar.com
>
parent
a4aa4b2b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
15 deletions
+1
-15
weblate/trans/templatetags/translations.py
weblate/trans/templatetags/translations.py
+1
-15
No files found.
weblate/trans/templatetags/translations.py
View file @
1dde3554
...
...
@@ -36,10 +36,7 @@ from datetime import date, datetime
import
weblate
from
weblate.trans.simplediff
import
html_diff
from
weblate.trans.util
import
(
split_plural
,
avatar_for_email
,
)
from
weblate.accounts.avatar
import
get_user_display
from
weblate.trans.util
import
split_plural
from
weblate.lang.models
import
Language
from
weblate.trans.models
import
Project
,
SubProject
,
Dictionary
,
Advertisement
from
weblate.trans.checks
import
CHECKS
...
...
@@ -296,17 +293,6 @@ def show_checks(checks, user):
}
@
register
.
simple_tag
def
avatar
(
user
,
size
=
80
):
if
not
appsettings
.
ENABLE_AVATARS
:
return
''
url
=
avatar_for_email
(
user
.
email
,
size
)
alt
=
escape
(
_
(
'Avatar for %s'
)
%
get_user_display
(
user
,
False
))
return
"""<img src="%s" alt="Avatar for %s" height="%s" width="%s"/>"""
%
(
url
,
alt
,
size
,
size
)
@
register
.
filter
def
gitdate
(
value
):
'''
...
...
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