comparison mercurial/templates/paper/helptopics.tmpl @ 32758: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 6ca3c54f801b
children
comparison
equal deleted inserted replaced
32757:d2acd99bbab3 32758:cba4461aa0a0
24 </ul> 24 </ul>
25 </div> 25 </div>
26 26
27 <div class="main"> 27 <div class="main">
28 <h2 class="breadcrumb"><a href="/">Mercurial</a> {pathdef%breadcrumb}</h2> 28 <h2 class="breadcrumb"><a href="/">Mercurial</a> {pathdef%breadcrumb}</h2>
29 <form class="search" action="{url|urlescape}log"> 29 {searchform}
30 {sessionvars%hiddenformentry}
31 <p><input name="rev" id="search1" type="text" size="30" /></p>
32 <div id="hint">{searchhint}</div>
33 </form>
34 <table class="bigtable"> 30 <table class="bigtable">
35 <tr><td colspan="2"><h2><a name="topics" href="#topics">Topics</a></h2></td></tr> 31 <tr><td colspan="2"><h2><a name="topics" href="#topics">Topics</a></h2></td></tr>
36 {topics % helpentry} 32 {topics % helpentry}
37 33
38 {if(earlycommands, ' 34 {if(earlycommands, '