Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hgweb/hgweb_mod.py @ 3488: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 Sat Oct 21 23:51:36 2006 -0700 +++ b/mercurial/hgweb/hgweb_mod.py Sun Oct 22 21:47:37 2006 -0300 @@ -629,9 +629,10 @@ 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 @@ "repo": self.reponame, "header": header, "footer": footer, + "motd": motd, "rawfileheader": rawfileheader, "sessionvars": sessionvars })