[hgweb] Fixed up gitweb templates
authorJosef "Jeff" Sipek <jeffpc@josefsipek.net>
Mon, 24 Jul 2006 20:10:04 -0400
changeset 2683 8a798185809d
parent 2660 ad329294d808
child 2684 783220e5d2d1
[hgweb] Fixed up gitweb templates Now the gitweb templates have archive links
mercurial/hgweb/hgweb_mod.py
templates/changelog-gitweb.tmpl
templates/shortlog-gitweb.tmpl
templates/summary-gitweb.tmpl
--- a/mercurial/hgweb/hgweb_mod.py	Mon Jul 24 17:17:07 2006 -0500
+++ b/mercurial/hgweb/hgweb_mod.py	Mon Jul 24 20:10:04 2006 -0400
@@ -609,7 +609,8 @@
                  lastchange = (0, 0), # FIXME
                  manifest = hex(mf),
                  tags = tagentries,
-                 shortlog = changelist)
+                 shortlog = changelist,
+                 archives=self.archivelist("tip"))
 
     def filediff(self, file, changeset):
         cl = self.repo.changelog
--- a/templates/changelog-gitweb.tmpl	Mon Jul 24 17:17:07 2006 -0500
+++ b/templates/changelog-gitweb.tmpl	Mon Jul 24 20:10:04 2006 -0400
@@ -20,7 +20,7 @@
 </div>
 
 <div class="page_nav">
-<a href="?cmd=summary;style=gitweb">summary</a> | changelog | <a href="?cmd=tags;style=gitweb">tags</a> | <a href="?cmd=manifest;manifest=#manifest#;path=/;style=gitweb">manifest</a><br/>
+<a href="?cmd=summary;style=gitweb">summary</a> | changelog | <a href="?cmd=tags;style=gitweb">tags</a> | <a href="?cmd=manifest;manifest=#manifest#;path=/;style=gitweb">manifest</a>#archives%archiveentry#<br/>
 <br/>
 #changenav%naventry#<br/>
 </div>
--- a/templates/shortlog-gitweb.tmpl	Mon Jul 24 17:17:07 2006 -0500
+++ b/templates/shortlog-gitweb.tmpl	Mon Jul 24 20:10:04 2006 -0400
@@ -1,7 +1,8 @@
 #header#
 
 <div class="page_nav">
-<a href="?cmd=summary;style=gitweb">summary</a> | <a href="?cmd=changelog;style=gitweb">log</a> | <a href="?cmd=tags;style=gitweb">tags</a> | <a href="?cmd=manifest;manifest=#manifest#;path=/;style=gitweb">manifest</a><br/>
+<a href="?cmd=summary;style=gitweb">summary</a> | <a href="?cmd=changelog;style=gitweb">log</a> | <a href="?cmd=tags;style=gitweb">tags</a> | <a href="?cmd=manifest;manifest=#manifest#;path=/;style=gitweb">manifest</a>#archives%archiveentry#
+<br/>
 
 #changenav%naventry#<br/>
 </div>
--- a/templates/summary-gitweb.tmpl	Mon Jul 24 17:17:07 2006 -0500
+++ b/templates/summary-gitweb.tmpl	Mon Jul 24 20:10:04 2006 -0400
@@ -9,7 +9,8 @@
 <a href="http://www.selenic.com/mercurial/" title="Mercurial"><div style="float:right;">Mercurial</div></a><a href="?cmd=summary;style=gitweb">#repo|escape#</a> / summary
 </div>
 <div class="page_nav">
-summary | <a href="?cmd=changelog;style=gitweb">changelog</a> | <a href="?cmd=tags;style=gitweb">tags</a> | <a href="?cmd=manifest;manifest=#manifest#;path=/;style=gitweb">manifest</a><br/>
+summary | <a href="?cmd=changelog;style=gitweb">changelog</a> | <a href="?cmd=tags;style=gitweb">tags</a> | <a href="?cmd=manifest;manifest=#manifest#;path=/;style=gitweb">manifest</a>#archives%archiveentry#
+<br/>
 </div>
 
 <div class="title">&nbsp;</div>