mercurial/hgweb/hgwebdir_mod.py
changeset 13964 616ad3f6fd33
parent 13821 a35aff48d577
child 13975 938fbeacac84
equal deleted inserted replaced
13962:8b252e826c68 13964:616ad3f6fd33
   345         if style == styles[0]:
   345         if style == styles[0]:
   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         staticurl = config('web', 'staticurl') or url + 'static/'
   351         staticurl = config('web', 'staticurl') or url + 'static/'
   351         if not staticurl.endswith('/'):
   352         if not staticurl.endswith('/'):
   352             staticurl += '/'
   353             staticurl += '/'
   353 
   354 
   354         tmpl = templater.templater(mapfile,
   355         tmpl = templater.templater(mapfile,
   355                                    defaults={"header": header,
   356                                    defaults={"header": header,
   356                                              "footer": footer,
   357                                              "footer": footer,
   357                                              "motd": motd,
   358                                              "motd": motd,
   358                                              "url": url,
   359                                              "url": url,
       
   360                                              "logourl": logourl,
   359                                              "staticurl": staticurl,
   361                                              "staticurl": staticurl,
   360                                              "sessionvars": sessionvars})
   362                                              "sessionvars": sessionvars})
   361         return tmpl
   363         return tmpl
   362 
   364 
   363     def updatereqenv(self, env):
   365     def updatereqenv(self, env):