56 tmpl = templater.templater(m, templater.common_filters, |
56 tmpl = templater.templater(m, templater.common_filters, |
57 defaults={"header": header, |
57 defaults={"header": header, |
58 "footer": footer}) |
58 "footer": footer}) |
59 |
59 |
60 def archivelist(ui, nodeid, url): |
60 def archivelist(ui, nodeid, url): |
|
61 al = ui.config("web", "allow_archive", "").split() |
61 for i in ['zip', 'gz', 'bz2']: |
62 for i in ['zip', 'gz', 'bz2']: |
62 if ui.configbool("web", "allow" + i, False): |
63 if i in al or ui.configbool("web", "allow" + i, False): |
63 yield {"type" : i, "node": nodeid, "url": url} |
64 yield {"type" : i, "node": nodeid, "url": url} |
64 |
65 |
65 def entries(sortcolumn="", descending=False, **map): |
66 def entries(sortcolumn="", descending=False, **map): |
66 rows = [] |
67 rows = [] |
67 parity = 0 |
68 parity = 0 |