# HG changeset patch
# User Anton Shestakov <a...@dwimlabs.net>
# Date 1474458768 -28800
#      Wed Sep 21 19:52:48 2016 +0800
# Node ID bfa565cda4197eb67186cf25957b4712ecaa73d1
# Parent  285a8c3e53f2183438f0cdbc238e4ab851d0d110
gitweb: tweak branch table's last row's cell colspan on summary page

This table only has 3 columns, so max sensible colspan is 3.

diff --git a/mercurial/templates/gitweb/summary.tmpl 
b/mercurial/templates/gitweb/summary.tmpl
--- a/mercurial/templates/gitweb/summary.tmpl
+++ b/mercurial/templates/gitweb/summary.tmpl
@@ -60,7 +60,7 @@ summary |
 <table cellspacing="0">
 {branches%branchentry}
 <tr class="light">
-  <td colspan="4"><a class="list"  
href="{url|urlescape}branches{sessionvars%urlparameter}">...</a></td>
+  <td colspan="3"><a class="list" 
href="{url|urlescape}branches{sessionvars%urlparameter}">...</a></td>
 </tr>
 </table>
 {footer}
diff --git a/tests/test-hgweb-commands.t b/tests/test-hgweb-commands.t
--- a/tests/test-hgweb-commands.t
+++ b/tests/test-hgweb-commands.t
@@ -1687,7 +1687,7 @@ Overviews
   </td>
   </tr>
   <tr class="light">
-    <td colspan="4"><a class="list"  href="/branches?style=gitweb">...</a></td>
+    <td colspan="3"><a class="list" href="/branches?style=gitweb">...</a></td>
   </tr>
   </table>
   <script type="text/javascript">process_dates()</script>
_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to