comparison tests/test-highlight.t @ 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 a298f5c61b34
children edbd60e31217
comparison
equal deleted inserted replaced
32757:d2acd99bbab3 32758:cba4461aa0a0
116 <h3> 116 <h3>
117 view primes.py @ 0:<a href="/rev/06824edf55d0">06824edf55d0</a> 117 view primes.py @ 0:<a href="/rev/06824edf55d0">06824edf55d0</a>
118 <span class="tag">tip</span> 118 <span class="tag">tip</span>
119 </h3> 119 </h3>
120 120
121
121 <form class="search" action="/log"> 122 <form class="search" action="/log">
122 123
123 <p><input name="rev" id="search1" type="text" size="30" /></p> 124 <p><input name="rev" id="search1" type="text" size="30" value="" /></p>
124 <div id="hint">Find changesets by keywords (author, files, the commit message), revision 125 <div id="hint">Find changesets by keywords (author, files, the commit message), revision
125 number or hash, or <a href="/help/revsets">revset expression</a>.</div> 126 number or hash, or <a href="/help/revsets">revset expression</a>.</div>
126 </form> 127 </form>
127 128
128 <div class="description">a</div> 129 <div class="description">a</div>
251 <h3> 252 <h3>
252 annotate primes.py @ 0:<a href="/rev/06824edf55d0">06824edf55d0</a> 253 annotate primes.py @ 0:<a href="/rev/06824edf55d0">06824edf55d0</a>
253 <span class="tag">tip</span> 254 <span class="tag">tip</span>
254 </h3> 255 </h3>
255 256
257
256 <form class="search" action="/log"> 258 <form class="search" action="/log">
257 259
258 <p><input name="rev" id="search1" type="text" size="30" /></p> 260 <p><input name="rev" id="search1" type="text" size="30" value="" /></p>
259 <div id="hint">Find changesets by keywords (author, files, the commit message), revision 261 <div id="hint">Find changesets by keywords (author, files, the commit message), revision
260 number or hash, or <a href="/help/revsets">revset expression</a>.</div> 262 number or hash, or <a href="/help/revsets">revset expression</a>.</div>
261 </form> 263 </form>
262 264
263 <div class="description">a</div> 265 <div class="description">a</div>