changeset 976:5d5ab159d197

hgweb: Changed file page to list format syntax
author Josef "Jeff" Sipek <jeffpc@optonline.net>
date Wed, 17 Aug 2005 21:59:02 -0500
parents bdd7c53fca00
children 289975641886
files mercurial/hgweb.py templates/filerevision.tmpl
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/hgweb.py	Wed Aug 17 21:45:44 2005 -0500
+++ b/mercurial/hgweb.py	Wed Aug 17 21:59:02 2005 -0500
@@ -431,9 +431,9 @@
 
         def lines():
             for l, t in enumerate(text.splitlines(1)):
-                yield self.t("fileline", line = t,
-                             linenumber = "% 6d" % (l + 1),
-                             parity = l & 1)
+                yield {"line": t,
+                       "linenumber": "% 6d" % (l + 1),
+                       "parity": l & 1}
 
         yield self.t("filerevision", file = f,
                      filenode = node,
--- a/templates/filerevision.tmpl	Wed Aug 17 21:45:44 2005 -0500
+++ b/templates/filerevision.tmpl	Wed Aug 17 21:59:02 2005 -0500
@@ -35,7 +35,7 @@
 </table>
 
 <pre>
-#text#
+#text%fileline#
 </pre>
 
 #footer#