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 |
@@ -562,6 +563,9 b' HasRepoPermissionAny, HasRepoPermissionA' | |||
|
562 | 563 | #============================================================================== |
|
563 | 564 | |
|
564 | 565 | def gravatar_url(email_address, size=30): |
|
566 | if not str2bool(config['app_conf'].get('use_gravatar')): | |
|
567 | return "/images/user%s.png" % size | |
|
568 | ||
|
565 | 569 | ssl_enabled = 'https' == request.environ.get('wsgi.url_scheme') |
|
566 | 570 | default = 'identicon' |
|
567 | 571 | baseurl_nossl = "http://www.gravatar.com/avatar/" |
General Comments 0
You need to be logged in to leave comments.
Login now