346 vars['style'] = style |
346 vars['style'] = style |
347 |
347 |
348 start = url[-1] == '?' and '&' or '?' |
348 start = url[-1] == '?' and '&' or '?' |
349 sessionvars = webutil.sessionvars(vars, start) |
349 sessionvars = webutil.sessionvars(vars, start) |
350 logourl = config('web', 'logourl', 'http://mercurial.selenic.com/') |
350 logourl = config('web', 'logourl', 'http://mercurial.selenic.com/') |
|
351 logoimg = config('web', 'logoimg', 'hglogo.png') |
351 staticurl = config('web', 'staticurl') or url + 'static/' |
352 staticurl = config('web', 'staticurl') or url + 'static/' |
352 if not staticurl.endswith('/'): |
353 if not staticurl.endswith('/'): |
353 staticurl += '/' |
354 staticurl += '/' |
354 |
355 |
355 tmpl = templater.templater(mapfile, |
356 tmpl = templater.templater(mapfile, |
356 defaults={"header": header, |
357 defaults={"header": header, |
357 "footer": footer, |
358 "footer": footer, |
358 "motd": motd, |
359 "motd": motd, |
359 "url": url, |
360 "url": url, |
360 "logourl": logourl, |
361 "logourl": logourl, |
|
362 "logoimg": logoimg, |
361 "staticurl": staticurl, |
363 "staticurl": staticurl, |
362 "sessionvars": sessionvars}) |
364 "sessionvars": sessionvars}) |
363 return tmpl |
365 return tmpl |
364 |
366 |
365 def updatereqenv(self, env): |
367 def updatereqenv(self, env): |