# HG changeset patch # User mpm@selenic.com # Date 1124568696 25200 # Node ID 8d2e24bae7609205efc1788c7cb26f82d4c4e7db # Parent 4f81068ed8cd48952eb87740d65bb8baa121a009 hgweb: convert index entries to list expansion style diff --git a/mercurial/hgweb.py b/mercurial/hgweb.py --- 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, diff --git a/templates/index.tmpl b/templates/index.tmpl --- a/templates/index.tmpl +++ b/templates/index.tmpl @@ -12,7 +12,7 @@ Author Last change - #entries# + #entries%indexentry# #footer#