##// END OF EJS Templates
merge with optional gravatars
marcink -
r1115:fcb50549 merge beta
parent child Browse files
Show More
1 NO CONTENT: new file 100644, binary diff hidden
1 NO CONTENT: new file 100644, binary diff hidden
1 NO CONTENT: new file 100644, binary diff hidden
1 NO CONTENT: new file 100644, binary diff hidden
@@ -49,6 +49,7 b' app_instance_uuid = develop'
49 49 cut_off_limit = 256000
50 50 force_https = false
51 51 commit_parse_limit = 25
52 use_gravatar = true
52 53
53 54 ####################################
54 55 ### CELERY CONFIG ####
@@ -48,6 +48,7 b' index_dir = %(here)s/data/index'
48 48 cut_off_limit = 256000
49 49 force_https = false
50 50 commit_parse_limit = 250
51 use_gravatar = true
51 52
52 53 ####################################
53 54 ### CELERY CONFIG ####
@@ -49,6 +49,7 b' app_instance_uuid = ${app_instance_uuid}'
49 49 cut_off_limit = 256000
50 50 force_https = false
51 51 commit_parse_limit = 50
52 use_gravatar = true
52 53
53 54 ####################################
54 55 ### CELERY CONFIG ####
@@ -10,7 +10,7 b' import urllib'
10 10
11 11 from pygments.formatters import HtmlFormatter
12 12 from pygments import highlight as code_highlight
13 from pylons import url, request
13 from pylons import url, request, config
14 14 from pylons.i18n.translation import _, ungettext
15 15
16 16 from webhelpers.html import literal, HTML, escape
@@ -35,6 +35,7 b' from webhelpers.html.tags import _set_in'
35 35
36 36 from vcs.utils.annotate import annotate_highlight
37 37 from rhodecode.lib.utils import repo_name_slug
38 from rhodecode.lib import str2bool
38 39
39 40 def _reset(name, value=None, id=NotGiven, type="reset", **attrs):
40 41 """Reset button
@@ -565,6 +566,9 b' HasRepoPermissionAny, HasRepoPermissionA'
565 566 #==============================================================================
566 567
567 568 def gravatar_url(email_address, size=30):
569 if not str2bool(config['app_conf'].get('use_gravatar')):
570 return "/images/user%s.png" % size
571
568 572 ssl_enabled = 'https' == request.environ.get('wsgi.url_scheme')
569 573 default = 'identicon'
570 574 baseurl_nossl = "http://www.gravatar.com/avatar/"
General Comments 0
You need to be logged in to leave comments. Login now