monoblue: add archive links on summary page
authorAnton Shestakov <av6@dwimlabs.net>
Wed, 19 Aug 2015 21:43:13 +0800
changeset 26114 9d6d3fee0c3f
parent 26113 9b70eda7529c
child 26115 748347e0e8d4
monoblue: add archive links on summary page
mercurial/templates/monoblue/summary.tmpl
tests/test-hgweb-symrev.t
--- a/mercurial/templates/monoblue/summary.tmpl	Sun Aug 30 19:03:38 2015 -0400
+++ b/mercurial/templates/monoblue/summary.tmpl	Wed Aug 19 21:43:13 2015 +0800
@@ -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>
--- a/tests/test-hgweb-symrev.t	Sun Aug 30 19:03:38 2015 -0400
+++ b/tests/test-hgweb-symrev.t	Wed Aug 19 21:43:13 2015 +0800
@@ -639,6 +639,7 @@
 (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>