mercurial/hgweb/webcommands.py
changeset 7288 9c399c53469d
parent 7280 810ca383da9c
child 7300 591767e6ea7a
equal deleted inserted replaced
7287:6e9fe4ff9c54 7288:9c399c53469d
   581     static = web.config("web", "static", None, untrusted=False)
   581     static = web.config("web", "static", None, untrusted=False)
   582     if not static:
   582     if not static:
   583         tp = web.templatepath
   583         tp = web.templatepath
   584         if isinstance(tp, str):
   584         if isinstance(tp, str):
   585             tp = [tp]
   585             tp = [tp]
   586         for path in tp:
   586         static = [os.path.join(p, 'static') for p in tp]
   587             static = os.path.join(path, 'static')
       
   588             if os.path.isdir(static):
       
   589                 break
       
   590     return [staticfile(static, fname, req)]
   587     return [staticfile(static, fname, req)]
   591 
   588 
   592 def graph(web, req, tmpl):
   589 def graph(web, req, tmpl):
   593     rev = webutil.changectx(web.repo, req).rev()
   590     rev = webutil.changectx(web.repo, req).rev()
   594     bg_height = 39
   591     bg_height = 39