Patchwork monoblue: add archive links on summary page

login
register
mail settings
Submitter Anton Shestakov
Date Aug. 31, 2015, 3:51 p.m.
Message ID <029db161c28cd4c96082.1441036268@neuro>
Download mbox | patch
Permalink /patch/10333/
State Accepted
Headers show

Comments

Anton Shestakov - Aug. 31, 2015, 3:51 p.m.
# HG changeset patch
# User Anton Shestakov <av6@dwimlabs.net>
# Date 1439991793 -28800
#      Wed Aug 19 21:43:13 2015 +0800
# Node ID 029db161c28cd4c960824376096fb8e06583f626
# Parent  ab66c1dee405aca0c51b8f76eab255d805c194d7
monoblue: add archive links on summary page
Matt Mackall - Aug. 31, 2015, 10:41 p.m.
On Mon, 2015-08-31 at 23:51 +0800, Anton Shestakov wrote:
> # HG changeset patch
> # User Anton Shestakov <av6@dwimlabs.net>
> # Date 1439991793 -28800
> #      Wed Aug 19 21:43:13 2015 +0800
> # Node ID 029db161c28cd4c960824376096fb8e06583f626
> # Parent  ab66c1dee405aca0c51b8f76eab255d805c194d7
> monoblue: add archive links on summary page

Queued for default, thanks.

Patch

diff --git a/mercurial/templates/monoblue/summary.tmpl b/mercurial/templates/monoblue/summary.tmpl
--- a/mercurial/templates/monoblue/summary.tmpl
+++ b/mercurial/templates/monoblue/summary.tmpl
@@ -26,6 +26,7 @@ 
             <li><a href="{url|urlescape}bookmarks{sessionvars%urlparameter}">bookmarks</a></li>
             <li><a href="{url|urlescape}branches{sessionvars%urlparameter}">branches</a></li>
             <li><a href="{url|urlescape}file{sessionvars%urlparameter}">files</a></li>
+            {archives%archiveentry}
             <li><a href="{url|urlescape}help{sessionvars%urlparameter}">help</a></li>
         </ul>
     </div>
diff --git a/tests/test-hgweb-symrev.t b/tests/test-hgweb-symrev.t
--- a/tests/test-hgweb-symrev.t
+++ b/tests/test-hgweb-symrev.t
@@ -639,6 +639,7 @@  Set up the repo
 (De)referencing symbolic revisions (monoblue)
 
   $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'summary?style=monoblue' | egrep $REVLINKS
+              <li><a href="/archive/tip.zip">zip</a></li>
   <a href="/rev/9d8c40cba617?style=monoblue">
   <a href="/rev/9d8c40cba617?style=monoblue">changeset</a> |
   <a href="/file/9d8c40cba617?style=monoblue">files</a>