hgweb: make anchor name actually match its href on help index page
authorAnton Shestakov <av6@dwimlabs.net>
Mon, 26 Sep 2016 16:12:40 +0800
changeset 30019 6ca3c54f801b
parent 30018 bd6df07ccc24
child 30020 bf94fe556f16
hgweb: make anchor name actually match its href on help index page
mercurial/templates/gitweb/helptopics.tmpl
mercurial/templates/monoblue/helptopics.tmpl
mercurial/templates/paper/helptopics.tmpl
tests/test-help.t
--- a/mercurial/templates/gitweb/helptopics.tmpl	Sat Sep 24 12:22:30 2016 -0700
+++ b/mercurial/templates/gitweb/helptopics.tmpl	Mon Sep 26 16:12:40 2016 +0800
@@ -30,7 +30,7 @@
 
 <div class="title">&nbsp;</div>
 <table cellspacing="0">
-<tr><td colspan="2"><h2><a name="main" href="#topics">Topics</a></h2></td></tr>
+<tr><td colspan="2"><h2><a name="topics" href="#topics">Topics</a></h2></td></tr>
 {topics % helpentry}
 
 {if(earlycommands, '
--- a/mercurial/templates/monoblue/helptopics.tmpl	Sat Sep 24 12:22:30 2016 -0700
+++ b/mercurial/templates/monoblue/helptopics.tmpl	Mon Sep 26 16:12:40 2016 +0800
@@ -35,7 +35,7 @@
 
     <h2 class="no-link no-border">help</h2>
     <table cellspacing="0">
-    <tr><td colspan="2"><h2><a name="main" href="#topics">Topics</a></h2></td></tr>
+    <tr><td colspan="2"><h2><a name="topics" href="#topics">Topics</a></h2></td></tr>
     {topics % helpentry}
 
     {if(earlycommands, '
--- a/mercurial/templates/paper/helptopics.tmpl	Sat Sep 24 12:22:30 2016 -0700
+++ b/mercurial/templates/paper/helptopics.tmpl	Mon Sep 26 16:12:40 2016 +0800
@@ -32,7 +32,7 @@
 <div id="hint">{searchhint}</div>
 </form>
 <table class="bigtable">
-<tr><td colspan="2"><h2><a name="main" href="#topics">Topics</a></h2></td></tr>
+<tr><td colspan="2"><h2><a name="topics" href="#topics">Topics</a></h2></td></tr>
 {topics % helpentry}
 
 {if(earlycommands, '
--- a/tests/test-help.t	Sat Sep 24 12:22:30 2016 -0700
+++ b/tests/test-help.t	Mon Sep 26 16:12:40 2016 +0800
@@ -1828,7 +1828,7 @@
   number or hash, or <a href="/help/revsets">revset expression</a>.</div>
   </form>
   <table class="bigtable">
-  <tr><td colspan="2"><h2><a name="main" href="#topics">Topics</a></h2></td></tr>
+  <tr><td colspan="2"><h2><a name="topics" href="#topics">Topics</a></h2></td></tr>
   
   <tr><td>
   <a href="/help/config">
@@ -2880,7 +2880,7 @@
   number or hash, or <a href="/help/revsets">revset expression</a>.</div>
   </form>
   <table class="bigtable">
-  <tr><td colspan="2"><h2><a name="main" href="#topics">Topics</a></h2></td></tr>
+  <tr><td colspan="2"><h2><a name="topics" href="#topics">Topics</a></h2></td></tr>
   
   <tr><td>
   <a href="/help/internals.bundles">