Mercurial > hg
comparison mercurial/templates/paper/help.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 | ac08ff370977 |
children |
comparison
equal
deleted
inserted
replaced
32757:d2acd99bbab3 | 32758:cba4461aa0a0 |
---|---|
22 </div> | 22 </div> |
23 | 23 |
24 <div class="main"> | 24 <div class="main"> |
25 <h2 class="breadcrumb"><a href="/">Mercurial</a> {pathdef%breadcrumb}</h2> | 25 <h2 class="breadcrumb"><a href="/">Mercurial</a> {pathdef%breadcrumb}</h2> |
26 <h3>Help: {topic}</h3> | 26 <h3>Help: {topic}</h3> |
27 | 27 {searchform} |
28 <form class="search" action="{url|urlescape}log"> | |
29 {sessionvars%hiddenformentry} | |
30 <p><input name="rev" id="search1" type="text" size="30" /></p> | |
31 <div id="hint">{searchhint}</div> | |
32 </form> | |
33 <div id="doc"> | 28 <div id="doc"> |
34 {rstdoc(doc, "html")} | 29 {rstdoc(doc, "html")} |
35 </div> | 30 </div> |
36 </div> | 31 </div> |
37 </div> | 32 </div> |