equal
deleted
inserted
replaced
231 default_port = "80" |
231 default_port = "80" |
232 |
232 |
233 port = req.env["SERVER_PORT"] |
233 port = req.env["SERVER_PORT"] |
234 port = port != default_port and (":" + port) or "" |
234 port = port != default_port and (":" + port) or "" |
235 urlbase = '%s://%s%s' % (proto, req.env['SERVER_NAME'], port) |
235 urlbase = '%s://%s%s' % (proto, req.env['SERVER_NAME'], port) |
|
236 logourl = self.config("web", "logourl", "http://mercurial.selenic.com/") |
236 staticurl = self.config("web", "staticurl") or req.url + 'static/' |
237 staticurl = self.config("web", "staticurl") or req.url + 'static/' |
237 if not staticurl.endswith('/'): |
238 if not staticurl.endswith('/'): |
238 staticurl += '/' |
239 staticurl += '/' |
239 |
240 |
240 # some functions for the templater |
241 # some functions for the templater |
270 |
271 |
271 # create the templater |
272 # create the templater |
272 |
273 |
273 tmpl = templater.templater(mapfile, |
274 tmpl = templater.templater(mapfile, |
274 defaults={"url": req.url, |
275 defaults={"url": req.url, |
|
276 "logourl": logourl, |
275 "staticurl": staticurl, |
277 "staticurl": staticurl, |
276 "urlbase": urlbase, |
278 "urlbase": urlbase, |
277 "repo": self.reponame, |
279 "repo": self.reponame, |
278 "header": header, |
280 "header": header, |
279 "footer": footer, |
281 "footer": footer, |