changeset 17288:fa223eecc6d7 stable

hgweb: fix "branches" links in gitweb template Tests fixed by Patrick Mézard <patrick@mezard.eu>
author Ross Lagerwall <rosslagerwall@gmail.com>
date Mon, 30 Jul 2012 08:18:25 +0200
parents adbed9231fdc
children f2d6b4f8e78c
files mercurial/templates/gitweb/summary.tmpl tests/test-hgweb-commands.t
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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>