Changeset - 7314e8384b1b
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 14 years ago 2012-01-20 07:07:46
marcin@python-works.com
gravatar fix to match supported sizes
1 file changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
rhodecode/lib/helpers.py
Show inline comments
 
@@ -529,7 +529,8 @@ HasRepoPermissionAny, HasRepoPermissionA
 
def gravatar_url(email_address, size=30):
 
    if (not str2bool(config['app_conf'].get('use_gravatar')) or
 
        not email_address or email_address == 'anonymous@rhodecode.org'):
 
        return url("/images/user%s.png" % size)
 
        f=lambda a,l:min(l,key=lambda x:abs(x-a))
 
        return url("/images/user%s.png" % f(size, [14, 16, 20, 24, 30]))
 

	
 
    ssl_enabled = 'https' == request.environ.get('wsgi.url_scheme')
 
    default = 'identicon'
0 comments (0 inline, 0 general)