Mercurial > hg > mercurial-crew-with-dirclash
diff mercurial/hgweb/hgweb_mod.py @ 3483:8f02223662c8
hgweb: make #motd# available for all templates
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Sun, 22 Oct 2006 21:47:37 -0300 |
parents | 0e68608bd11d |
children | e0db0b7934f2 |
line wrap: on
line diff
--- a/mercurial/hgweb/hgweb_mod.py +++ b/mercurial/hgweb/hgweb_mod.py @@ -629,9 +629,10 @@ class hgweb(object): yield '' def footer(**map): - yield self.t("footer", - motd=self.repo.ui.config("web", "motd", ""), - **map) + yield self.t("footer", **map) + + def motd(**map): + yield self.repo.ui.config("web", "motd", "") def expand_form(form): shortcuts = { @@ -762,6 +763,7 @@ class hgweb(object): "repo": self.reponame, "header": header, "footer": footer, + "motd": motd, "rawfileheader": rawfileheader, "sessionvars": sessionvars })