changeset 2170:29eeb2717915

Add archive download links to tip on main changeset list page
author Colin McMillen <mcmillen@cs.cmu.edu>
date Mon, 01 May 2006 09:01:59 +0200
parents 4564794b6f55
children 290534ee163c
files mercurial/hgweb.py templates/changelog.tmpl
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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>