# HG changeset patch # User mpm@selenic.com # Date 1124568696 25200 # Node ID 8d2e24bae7609205efc1788c7cb26f82d4c4e7db # Parent 4f81068ed8cd48952eb87740d65bb8baa121a009 hgweb: convert index entries to list expansion style diff -r 4f81068ed8cd -r 8d2e24bae760 mercurial/hgweb.py --- a/mercurial/hgweb.py Sat Aug 20 13:08:07 2005 -0700 +++ b/mercurial/hgweb.py Sat Aug 20 13:11:36 2005 -0700 @@ -561,7 +561,7 @@ "manifest": mnode, "basename": f[:-1]} parity = 1 - parity - + yield self.t("manifest", manifest = mnode, rev = rev, @@ -882,8 +882,7 @@ 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, diff -r 4f81068ed8cd -r 8d2e24bae760 templates/index.tmpl --- a/templates/index.tmpl Sat Aug 20 13:08:07 2005 -0700 +++ b/templates/index.tmpl Sat Aug 20 13:11:36 2005 -0700 @@ -12,7 +12,7 @@ Author Last change - #entries# + #entries%indexentry# #footer#