Changeset - 5351a3a32381
[Not reviewed]
beta
0 4 4
Marcin Kuzminski - 15 years ago 2011-03-02 11:50:13
marcin@python-works.com
#21 added optional flag to disable gravatar, and use local icon
8 files changed with 8 insertions and 1 deletions:
0 comments (0 inline, 0 general)
development.ini
Show inline comments
 
@@ -49,6 +49,7 @@ app_instance_uuid = develop
 
cut_off_limit = 256000
 
force_https = false
 
commit_parse_limit = 25
 
use_gravatar = true
 

	
 
####################################
 
###        CELERY CONFIG        ####
production.ini
Show inline comments
 
@@ -48,6 +48,7 @@ index_dir = %(here)s/data/index
 
cut_off_limit = 256000
 
force_https = false
 
commit_parse_limit = 250
 
use_gravatar = true
 

	
 
####################################
 
###        CELERY CONFIG        ####
rhodecode/config/deployment.ini_tmpl
Show inline comments
 
@@ -49,6 +49,7 @@ app_instance_uuid = ${app_instance_uuid}
 
cut_off_limit = 256000
 
force_https = false 
 
commit_parse_limit = 50
 
use_gravatar = true
 

	
 
####################################
 
###        CELERY CONFIG        ####
rhodecode/lib/helpers.py
Show inline comments
 
@@ -10,7 +10,7 @@ import urllib
 

	
 
from pygments.formatters import HtmlFormatter
 
from pygments import highlight as code_highlight
 
from pylons import url, request
 
from pylons import url, request, config
 
from pylons.i18n.translation import _, ungettext
 

	
 
from webhelpers.html import literal, HTML, escape
 
@@ -35,6 +35,7 @@ from webhelpers.html.tags import _set_in
 

	
 
from vcs.utils.annotate import annotate_highlight
 
from rhodecode.lib.utils import repo_name_slug
 
from rhodecode.lib import str2bool
 

	
 
def _reset(name, value=None, id=NotGiven, type="reset", **attrs):
 
    """Reset button
 
@@ -562,6 +563,9 @@ HasRepoPermissionAny, HasRepoPermissionA
 
#==============================================================================
 

	
 
def gravatar_url(email_address, size=30):
 
    if not str2bool(config['app_conf'].get('use_gravatar')):
 
        return "/images/user%s.png" % size
 

	
 
    ssl_enabled = 'https' == request.environ.get('wsgi.url_scheme')
 
    default = 'identicon'
 
    baseurl_nossl = "http://www.gravatar.com/avatar/"
rhodecode/public/images/user14.png
Show inline comments
 
new file 100644
 
binary diff not shown
Show images
rhodecode/public/images/user20.png
Show inline comments
 
new file 100644
 
binary diff not shown
Show images
rhodecode/public/images/user24.png
Show inline comments
 
new file 100644
 
binary diff not shown
Show images
rhodecode/public/images/user30.png
Show inline comments
 
new file 100644
 
binary diff not shown
Show images
0 comments (0 inline, 0 general)