--- a/mercurial/hgweb/hgwebdir_mod.py Wed Feb 14 15:20:06 2007 -0700
+++ b/mercurial/hgweb/hgwebdir_mod.py Thu Feb 15 08:51:32 2007 -0200
@@ -88,6 +88,10 @@
if not url.endswith('/'):
url += '/'
+ staticurl = config('web', 'staticurl') or url + 'static/'
+ if not staticurl.endswith('/'):
+ staticurl += '/'
+
style = self.style
if style is None:
style = config('web', 'style', '')
@@ -98,7 +102,8 @@
defaults={"header": header,
"footer": footer,
"motd": motd,
- "url": url})
+ "url": url,
+ "staticurl": staticurl})
def archivelist(ui, nodeid, url):
allowed = ui.configlist("web", "allow_archive", untrusted=True)