equal
deleted
inserted
replaced
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 |