Show More
@@ -69,13 +69,18 b' class hgwebdir(object):' | |||||
69 | def footer(**map): |
|
69 | def footer(**map): | |
70 | yield tmpl("footer", motd=self.motd, **map) |
|
70 | yield tmpl("footer", motd=self.motd, **map) | |
71 |
|
71 | |||
|
72 | url = req.env['REQUEST_URI'].split('?')[0] | |||
|
73 | if not url.endswith('/'): | |||
|
74 | url += '/' | |||
|
75 | ||||
72 | style = self.style |
|
76 | style = self.style | |
73 | if req.form.has_key('style'): |
|
77 | if req.form.has_key('style'): | |
74 | style = req.form['style'][0] |
|
78 | style = req.form['style'][0] | |
75 | mapfile = style_map(templater.templatepath(), style) |
|
79 | mapfile = style_map(templater.templatepath(), style) | |
76 | tmpl = templater.templater(mapfile, templater.common_filters, |
|
80 | tmpl = templater.templater(mapfile, templater.common_filters, | |
77 | defaults={"header": header, |
|
81 | defaults={"header": header, | |
78 |
"footer": footer |
|
82 | "footer": footer, | |
|
83 | "url": url}) | |||
79 |
|
84 | |||
80 | def archivelist(ui, nodeid, url): |
|
85 | def archivelist(ui, nodeid, url): | |
81 | allowed = ui.configlist("web", "allow_archive") |
|
86 | allowed = ui.configlist("web", "allow_archive") |
General Comments 0
You need to be logged in to leave comments.
Login now