Add archive download links to tip on main changeset list page
authorColin McMillen <mcmillen@cs.cmu.edu>
Mon, 01 May 2006 09:01:59 +0200
changeset 2170 29eeb2717915
parent 2169 4564794b6f55
child 2171 290534ee163c
Add archive download links to tip on main changeset list page
mercurial/hgweb.py
templates/changelog.tmpl
--- a/mercurial/hgweb.py	Sun Apr 30 22:46:54 2006 +0200
+++ b/mercurial/hgweb.py	Mon May 01 09:01:59 2006 +0200
@@ -293,7 +293,8 @@
         yield self.t('changelog',
                      changenav=changenav,
                      manifest=hex(mf),
-                     rev=pos, changesets=count, entries=changelist)
+                     rev=pos, changesets=count, entries=changelist,
+                     archives=self.archivelist("tip"))
 
     def search(self, query):
 
--- a/templates/changelog.tmpl	Sun Apr 30 22:46:54 2006 +0200
+++ b/templates/changelog.tmpl	Mon May 01 09:01:59 2006 +0200
@@ -8,6 +8,7 @@
 <div class="buttons">
 <a href="?cmd=tags">tags</a>
 <a href="?mf=#manifest|short#;path=/">manifest</a>
+#archives%archiveentry#
 <a type="application/rss+xml" href="?style=rss">rss</a>
 </div>