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	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,
--- 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 @@
         <td>Author</td>
         <td>Last change</td>
     <tr>
-    #entries#
+    #entries%indexentry#
 </table>
 
 #footer#