##// END OF EJS Templates
configitems: register the 'web.logoimg' config
Boris Feld -
r34612:c879fc7b default
parent child Browse files
Show More
@@ -745,6 +745,9 b" coreconfigitem('web', 'hidden',"
745 coreconfigitem('web', 'labels',
745 coreconfigitem('web', 'labels',
746 default=list,
746 default=list,
747 )
747 )
748 coreconfigitem('web', 'logoimg',
749 default='hglogo.png',
750 )
748 coreconfigitem('web', 'accesslog',
751 coreconfigitem('web', 'accesslog',
749 default='-',
752 default='-',
750 )
753 )
@@ -169,7 +169,7 b' class requestcontext(object):'
169 port = port != default_port and (':' + port) or ''
169 port = port != default_port and (':' + port) or ''
170 urlbase = '%s://%s%s' % (proto, req.env['SERVER_NAME'], port)
170 urlbase = '%s://%s%s' % (proto, req.env['SERVER_NAME'], port)
171 logourl = self.config('web', 'logourl', 'https://mercurial-scm.org/')
171 logourl = self.config('web', 'logourl', 'https://mercurial-scm.org/')
172 logoimg = self.config('web', 'logoimg', 'hglogo.png')
172 logoimg = self.config('web', 'logoimg')
173 staticurl = self.config('web', 'staticurl') or req.url + 'static/'
173 staticurl = self.config('web', 'staticurl') or req.url + 'static/'
174 if not staticurl.endswith('/'):
174 if not staticurl.endswith('/'):
175 staticurl += '/'
175 staticurl += '/'
@@ -511,7 +511,7 b' class hgwebdir(object):'
511 start = url[-1] == '?' and '&' or '?'
511 start = url[-1] == '?' and '&' or '?'
512 sessionvars = webutil.sessionvars(vars, start)
512 sessionvars = webutil.sessionvars(vars, start)
513 logourl = config('web', 'logourl', 'https://mercurial-scm.org/')
513 logourl = config('web', 'logourl', 'https://mercurial-scm.org/')
514 logoimg = config('web', 'logoimg', 'hglogo.png')
514 logoimg = config('web', 'logoimg')
515 staticurl = config('web', 'staticurl') or url + 'static/'
515 staticurl = config('web', 'staticurl') or url + 'static/'
516 if not staticurl.endswith('/'):
516 if not staticurl.endswith('/'):
517 staticurl += '/'
517 staticurl += '/'
General Comments 0
You need to be logged in to leave comments. Login now