Show More
@@ -629,9 +629,10 b' class hgweb(object):' | |||
|
629 | 629 | yield '' |
|
630 | 630 | |
|
631 | 631 | def footer(**map): |
|
632 | yield self.t("footer", | |
|
633 | motd=self.repo.ui.config("web", "motd", ""), | |
|
634 | **map) | |
|
632 | yield self.t("footer", **map) | |
|
633 | ||
|
634 | def motd(**map): | |
|
635 | yield self.repo.ui.config("web", "motd", "") | |
|
635 | 636 | |
|
636 | 637 | def expand_form(form): |
|
637 | 638 | shortcuts = { |
@@ -762,6 +763,7 b' class hgweb(object):' | |||
|
762 | 763 | "repo": self.reponame, |
|
763 | 764 | "header": header, |
|
764 | 765 | "footer": footer, |
|
766 | "motd": motd, | |
|
765 | 767 | "rawfileheader": rawfileheader, |
|
766 | 768 | "sessionvars": sessionvars |
|
767 | 769 | }) |
@@ -69,6 +69,9 b' class hgwebdir(object):' | |||
|
69 | 69 | def footer(**map): |
|
70 | 70 | yield tmpl("footer", **map) |
|
71 | 71 | |
|
72 | def motd(**map): | |
|
73 | yield self.motd | |
|
74 | ||
|
72 | 75 | url = req.env['REQUEST_URI'].split('?')[0] |
|
73 | 76 | if not url.endswith('/'): |
|
74 | 77 | url += '/' |
@@ -80,6 +83,7 b' class hgwebdir(object):' | |||
|
80 | 83 | tmpl = templater.templater(mapfile, templater.common_filters, |
|
81 | 84 | defaults={"header": header, |
|
82 | 85 | "footer": footer, |
|
86 | "motd": motd, | |
|
83 | 87 | "url": url}) |
|
84 | 88 | |
|
85 | 89 | def archivelist(ui, nodeid, url): |
@@ -202,5 +206,4 b' class hgwebdir(object):' | |||
|
202 | 206 | for column in sortable] |
|
203 | 207 | req.write(tmpl("index", entries=entries, |
|
204 | 208 | sortcolumn=sortcolumn, descending=descending, |
|
205 | motd=self.motd, | |
|
206 | 209 | **dict(sort))) |
General Comments 0
You need to be logged in to leave comments.
Login now