Mercurial > hg > mercurial-crew-with-dirclash
changeset 982:8d2e24bae760
hgweb: convert index entries to list expansion style
author | mpm@selenic.com |
---|---|
date | Sat, 20 Aug 2005 13:11:36 -0700 |
parents | 4f81068ed8cd |
children | 4a988dc8d9b8 |
files | mercurial/hgweb.py templates/index.tmpl |
diffstat | 2 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/hgweb.py +++ b/mercurial/hgweb.py @@ -561,7 +561,7 @@ class hgweb: "manifest": mnode, "basename": f[:-1]} parity = 1 - parity - + yield self.t("manifest", manifest = mnode, rev = rev, @@ -882,8 +882,7 @@ class hgwebdir: except: return default - yield tmpl("indexentry", - author = get("web", "author", "unknown"), + yield dict(author = get("web", "author", "unknown"), name = get("web", "name", v), url = os.environ["REQUEST_URI"] + "/" + v, parity = parity,