Show More
@@ -748,6 +748,9 b" coreconfigitem('web', 'labels'," | |||||
748 | coreconfigitem('web', 'logoimg', |
|
748 | coreconfigitem('web', 'logoimg', | |
749 | default='hglogo.png', |
|
749 | default='hglogo.png', | |
750 | ) |
|
750 | ) | |
|
751 | coreconfigitem('web', 'logourl', | |||
|
752 | default='https://mercurial-scm.org/', | |||
|
753 | ) | |||
751 | coreconfigitem('web', 'accesslog', |
|
754 | coreconfigitem('web', 'accesslog', | |
752 | default='-', |
|
755 | default='-', | |
753 | ) |
|
756 | ) |
@@ -168,7 +168,7 b' class requestcontext(object):' | |||||
168 | port = req.env['SERVER_PORT'] |
|
168 | port = req.env['SERVER_PORT'] | |
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' |
|
171 | logourl = self.config('web', 'logourl') | |
172 | logoimg = self.config('web', 'logoimg') |
|
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('/'): |
@@ -510,7 +510,7 b' class hgwebdir(object):' | |||||
510 |
|
510 | |||
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' |
|
513 | logourl = config('web', 'logourl') | |
514 | logoimg = config('web', 'logoimg') |
|
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('/'): |
General Comments 0
You need to be logged in to leave comments.
Login now