equal
deleted
inserted
replaced
166 default_port = '80' |
166 default_port = '80' |
167 |
167 |
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', 'https://mercurial-scm.org/') |
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('/'): |
175 staticurl += '/' |
175 staticurl += '/' |
176 |
176 |