comparison tests/test-help.t @ 32778:cba4461aa0a0

hgweb: consolidate search form for paper AFAICT this was mostly a bunch of copy pasta. The only variation is some pages defined a "value" attribute. The "query" variable will just be empty on pages that don't accept it. So let's consolidate the template and remove the redundancy.
author Gregory Szorc <gregory.szorc@gmail.com>
date Fri, 09 Jun 2017 13:59:13 -0700
parents 37863db50414
children 75be14993fda
comparison
equal deleted inserted replaced
32777:d2acd99bbab3 32778:cba4461aa0a0
1913 </ul> 1913 </ul>
1914 </div> 1914 </div>
1915 1915
1916 <div class="main"> 1916 <div class="main">
1917 <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2> 1917 <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2>
1918
1918 <form class="search" action="/log"> 1919 <form class="search" action="/log">
1919 1920
1920 <p><input name="rev" id="search1" type="text" size="30" /></p> 1921 <p><input name="rev" id="search1" type="text" size="30" value="" /></p>
1921 <div id="hint">Find changesets by keywords (author, files, the commit message), revision 1922 <div id="hint">Find changesets by keywords (author, files, the commit message), revision
1922 number or hash, or <a href="/help/revsets">revset expression</a>.</div> 1923 number or hash, or <a href="/help/revsets">revset expression</a>.</div>
1923 </form> 1924 </form>
1924 <table class="bigtable"> 1925 <table class="bigtable">
1925 <tr><td colspan="2"><h2><a name="topics" href="#topics">Topics</a></h2></td></tr> 1926 <tr><td colspan="2"><h2><a name="topics" href="#topics">Topics</a></h2></td></tr>
2507 <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2> 2508 <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2>
2508 <h3>Help: add</h3> 2509 <h3>Help: add</h3>
2509 2510
2510 <form class="search" action="/log"> 2511 <form class="search" action="/log">
2511 2512
2512 <p><input name="rev" id="search1" type="text" size="30" /></p> 2513 <p><input name="rev" id="search1" type="text" size="30" value="" /></p>
2513 <div id="hint">Find changesets by keywords (author, files, the commit message), revision 2514 <div id="hint">Find changesets by keywords (author, files, the commit message), revision
2514 number or hash, or <a href="/help/revsets">revset expression</a>.</div> 2515 number or hash, or <a href="/help/revsets">revset expression</a>.</div>
2515 </form> 2516 </form>
2516 <div id="doc"> 2517 <div id="doc">
2517 <p> 2518 <p>
2687 <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2> 2688 <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2>
2688 <h3>Help: remove</h3> 2689 <h3>Help: remove</h3>
2689 2690
2690 <form class="search" action="/log"> 2691 <form class="search" action="/log">
2691 2692
2692 <p><input name="rev" id="search1" type="text" size="30" /></p> 2693 <p><input name="rev" id="search1" type="text" size="30" value="" /></p>
2693 <div id="hint">Find changesets by keywords (author, files, the commit message), revision 2694 <div id="hint">Find changesets by keywords (author, files, the commit message), revision
2694 number or hash, or <a href="/help/revsets">revset expression</a>.</div> 2695 number or hash, or <a href="/help/revsets">revset expression</a>.</div>
2695 </form> 2696 </form>
2696 <div id="doc"> 2697 <div id="doc">
2697 <p> 2698 <p>
2888 <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2> 2889 <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2>
2889 <h3>Help: dates</h3> 2890 <h3>Help: dates</h3>
2890 2891
2891 <form class="search" action="/log"> 2892 <form class="search" action="/log">
2892 2893
2893 <p><input name="rev" id="search1" type="text" size="30" /></p> 2894 <p><input name="rev" id="search1" type="text" size="30" value="" /></p>
2894 <div id="hint">Find changesets by keywords (author, files, the commit message), revision 2895 <div id="hint">Find changesets by keywords (author, files, the commit message), revision
2895 number or hash, or <a href="/help/revsets">revset expression</a>.</div> 2896 number or hash, or <a href="/help/revsets">revset expression</a>.</div>
2896 </form> 2897 </form>
2897 <div id="doc"> 2898 <div id="doc">
2898 <h1>Date Formats</h1> 2899 <h1>Date Formats</h1>
2991 </ul> 2992 </ul>
2992 </div> 2993 </div>
2993 2994
2994 <div class="main"> 2995 <div class="main">
2995 <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2> 2996 <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2>
2997
2996 <form class="search" action="/log"> 2998 <form class="search" action="/log">
2997 2999
2998 <p><input name="rev" id="search1" type="text" size="30" /></p> 3000 <p><input name="rev" id="search1" type="text" size="30" value="" /></p>
2999 <div id="hint">Find changesets by keywords (author, files, the commit message), revision 3001 <div id="hint">Find changesets by keywords (author, files, the commit message), revision
3000 number or hash, or <a href="/help/revsets">revset expression</a>.</div> 3002 number or hash, or <a href="/help/revsets">revset expression</a>.</div>
3001 </form> 3003 </form>
3002 <table class="bigtable"> 3004 <table class="bigtable">
3003 <tr><td colspan="2"><h2><a name="topics" href="#topics">Topics</a></h2></td></tr> 3005 <tr><td colspan="2"><h2><a name="topics" href="#topics">Topics</a></h2></td></tr>
3098 <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2> 3100 <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2>
3099 <h3>Help: internals.changegroups</h3> 3101 <h3>Help: internals.changegroups</h3>
3100 3102
3101 <form class="search" action="/log"> 3103 <form class="search" action="/log">
3102 3104
3103 <p><input name="rev" id="search1" type="text" size="30" /></p> 3105 <p><input name="rev" id="search1" type="text" size="30" value="" /></p>
3104 <div id="hint">Find changesets by keywords (author, files, the commit message), revision 3106 <div id="hint">Find changesets by keywords (author, files, the commit message), revision
3105 number or hash, or <a href="/help/revsets">revset expression</a>.</div> 3107 number or hash, or <a href="/help/revsets">revset expression</a>.</div>
3106 </form> 3108 </form>
3107 <div id="doc"> 3109 <div id="doc">
3108 <h1>Changegroups</h1> 3110 <h1>Changegroups</h1>