[PATCH] Add .tar and .zip download links to default hgweb index
Colin McMillen
mcmillen at cs.cmu.edu
Thu Apr 27 23:26:40 UTC 2006
# HG changeset patch
# User Colin McMillen <mcmillen at cs.cmu.edu>
# Node ID 0fcbdaf6eb6775ab5517c32990471ba7f9573bbe
# Parent 705ed3665f064143653981b67c9335f8ec2a2624
Add .tar and .zip download links to default hgweb index.
diff -r 705ed3665f064143653981b67c9335f8ec2a2624 -r 0fcbdaf6eb6775ab5517c32990471ba7f9573bbe templates/index.tmpl
--- a/templates/index.tmpl Wed Apr 26 17:05:13 2006 -0400
+++ b/templates/index.tmpl Thu Apr 27 19:24:56 2006 -0400
@@ -11,6 +11,7 @@
<td>Description</td>
<td>Contact</td>
<td>Last change</td>
+ <td>Download</td>
<td> </td>
<tr>
#entries%indexentry#
diff -r 705ed3665f064143653981b67c9335f8ec2a2624 -r 0fcbdaf6eb6775ab5517c32990471ba7f9573bbe templates/map
--- a/templates/map Wed Apr 26 17:05:13 2006 -0400
+++ b/templates/map Thu Apr 27 19:24:56 2006 -0400
@@ -43,7 +43,7 @@ filelogparent = '<tr><th>parent #rev#:</
filelogparent = '<tr><th>parent #rev#:</th><td><a href="?f=#node|short#;file=#file|urlescape#">#node|short#</a></td></tr>'
filediffchild = '<tr><th class="child">child #rev#:</th><td class="child"><a href="?cs=#node|short#">#node|short#</a></td></tr>'
filelogchild = '<tr><th>child #rev#:</th><td><a href="?f=#node|short#;file=#file|urlescape#">#node|short#</a></td></tr>'
-indexentry = '<tr class="parity#parity#"><td><a href="#url#">#name|escape#</a></td><td>#shortdesc#</td><td>#contact|obfuscate#</td><td class="age">#lastupdate|age# ago</td><td><a href="#url#?cl=tip;style=rss">RSS</a></td></tr>'
+indexentry = '<tr class="parity#parity#"><td><a href="#url#">#name|escape#</a></td><td>#shortdesc#</td><td>#contact|obfuscate#</td><td class="age">#lastupdate|age# ago</td><td><a href="#url#?ca=tip;type=gz">tar</a> <a href="#url#?ca=tip;type=zip">zip</a></td><td><a href="#url#?cl=tip;style=rss">RSS</a></td></tr>'
index = index.tmpl
archiveentry = '<a href="?ca=#node|short#;type=#type|urlescape#">#type|escape#</a> '
notfound = notfound.tmpl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 191 bytes
Desc: Digital signature
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20060427/aecfb553/attachment-0001.asc>
More information about the Mercurial
mailing list