hgweb: fix "branches" links in gitweb template stable
authorRoss Lagerwall <rosslagerwall@gmail.com>
Mon, 30 Jul 2012 08:18:25 +0200
branchstable
changeset 17288 fa223eecc6d7
parent 17287 adbed9231fdc
child 17289 f2d6b4f8e78c
hgweb: fix "branches" links in gitweb template Tests fixed by Patrick Mézard <patrick@mezard.eu>
mercurial/templates/gitweb/summary.tmpl
tests/test-hgweb-commands.t
--- a/mercurial/templates/gitweb/summary.tmpl	Mon Jul 30 08:11:22 2012 +0200
+++ b/mercurial/templates/gitweb/summary.tmpl	Mon Jul 30 08:18:25 2012 +0200
@@ -56,11 +56,11 @@
 <tr class="light"><td colspan="3"><a class="list" href="{url}bookmarks{sessionvars%urlparameter}">...</a></td></tr>
 </table>
 
-<div><a class="title" href="#">branches</a></div>
+<div><a class="title" href="{url}branches{sessionvars%urlparameter}">branches</a></div>
 <table cellspacing="0">
 {branches%branchentry}
 <tr class="light">
-  <td colspan="4"><a class="list"  href="#">...</a></td>
+  <td colspan="4"><a class="list"  href="{url}branches{sessionvars%urlparameter}">...</a></td>
 </tr>
 </table>
 {footer}
--- a/tests/test-hgweb-commands.t	Mon Jul 30 08:11:22 2012 +0200
+++ b/tests/test-hgweb-commands.t	Mon Jul 30 08:18:25 2012 +0200
@@ -857,7 +857,7 @@
   <tr class="light"><td colspan="3"><a class="list" href="/bookmarks?style=gitweb">...</a></td></tr>
   </table>
   
-  <div><a class="title" href="#">branches</a></div>
+  <div><a class="title" href="/branches?style=gitweb">branches</a></div>
   <table cellspacing="0">
   
   <tr class="parity0">
@@ -891,7 +891,7 @@
   </td>
   </tr>
   <tr class="light">
-    <td colspan="4"><a class="list"  href="#">...</a></td>
+    <td colspan="4"><a class="list"  href="/branches?style=gitweb">...</a></td>
   </tr>
   </table>
   <script type="text/javascript">process_dates()</script>