hgweb: Changed file page to list format syntax
authorJosef "Jeff" Sipek <jeffpc@optonline.net>
Wed, 17 Aug 2005 21:59:02 -0500
changeset 976 5d5ab159d197
parent 975 bdd7c53fca00
child 977 289975641886
hgweb: Changed file page to list format syntax
mercurial/hgweb.py
templates/filerevision.tmpl
--- a/mercurial/hgweb.py
+++ b/mercurial/hgweb.py
@@ -431,9 +431,9 @@ class hgweb:
 
         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
+++ b/templates/filerevision.tmpl
@@ -35,7 +35,7 @@
 </table>
 
 <pre>
-#text#
+#text%fileline#
 </pre>
 
 #footer#