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
8a343154
Commit
8a343154
authored
Mar 19, 2013
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle properly blank emails
parent
7f8a5448
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
trans/util.py
trans/util.py
+3
-2
No files found.
trans/util.py
View file @
8a343154
...
...
@@ -82,11 +82,11 @@ def get_user_display(user, icon=True, link=False):
'''
Nicely formats user for display.
'''
email
=
'noreply@weblate.org'
# Did we get any user?
if
user
is
None
:
# None user, probably remotely triggered action
full_name
=
_
(
'None'
)
email
=
'noreply@weblate.org'
profile
=
None
else
:
# Get full name
...
...
@@ -96,7 +96,8 @@ def get_user_display(user, icon=True, link=False):
if
full_name
.
strip
()
==
''
:
full_name
=
user
.
username
email
=
user
.
email
if
user
.
email
!=
''
:
email
=
user
.
email
profile
=
user
.
get_profile
()
# Escape HTML
...
...
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