Changeset - 848492e2aafa
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 13 years ago 2013-04-16 01:42:24
marcin@python-works.com
h.person, if author name is empty, use email as a fallback
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
rhodecode/lib/helpers.py
Show inline comments
 
@@ -456,8 +456,8 @@ def person(author, show_attr="username_a
 
    if user is not None:
 
        return person_getter(user)
 

	
 
    # Still nothing?  Just pass back the author name then
 
    return _author
 
    # Still nothing?  Just pass back the author name if any, else the email
 
    return _author or _email
 

	
 

	
 
def person_by_id(id_, show_attr="username_and_name"):
0 comments (0 inline, 0 general)