comparison tests/test-hgweb.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 eaf3819631c2
children 2d93d2159e30
comparison
equal deleted inserted replaced
32757:d2acd99bbab3 32758:cba4461aa0a0
79 <div class="main"> 79 <div class="main">
80 80
81 <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2> 81 <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2>
82 <h3>error</h3> 82 <h3>error</h3>
83 83
84
84 <form class="search" action="/log"> 85 <form class="search" action="/log">
85 86
86 <p><input name="rev" id="search1" type="text" size="30"></p> 87 <p><input name="rev" id="search1" type="text" size="30" value="" /></p>
87 <div id="hint">Find changesets by keywords (author, files, the commit message), revision 88 <div id="hint">Find changesets by keywords (author, files, the commit message), revision
88 number or hash, or <a href="/help/revsets">revset expression</a>.</div> 89 number or hash, or <a href="/help/revsets">revset expression</a>.</div>
89 </form> 90 </form>
90 91
91 <div class="description"> 92 <div class="description">
186 <div class="main"> 187 <div class="main">
187 188
188 <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2> 189 <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2>
189 <h3>error</h3> 190 <h3>error</h3>
190 191
192
191 <form class="search" action="/log"> 193 <form class="search" action="/log">
192 194
193 <p><input name="rev" id="search1" type="text" size="30"></p> 195 <p><input name="rev" id="search1" type="text" size="30" value="" /></p>
194 <div id="hint">Find changesets by keywords (author, files, the commit message), revision 196 <div id="hint">Find changesets by keywords (author, files, the commit message), revision
195 number or hash, or <a href="/help/revsets">revset expression</a>.</div> 197 number or hash, or <a href="/help/revsets">revset expression</a>.</div>
196 </form> 198 </form>
197 199
198 <div class="description"> 200 <div class="description">
266 <h3> 268 <h3>
267 directory / @ 0:<a href="/rev/2ef0ac749a14">2ef0ac749a14</a> 269 directory / @ 0:<a href="/rev/2ef0ac749a14">2ef0ac749a14</a>
268 <span class="tag">tip</span> <span class="tag">@</span> <span class="tag">a b c</span> <span class="tag">d/e/f</span> 270 <span class="tag">tip</span> <span class="tag">@</span> <span class="tag">a b c</span> <span class="tag">d/e/f</span>
269 </h3> 271 </h3>
270 272
273
271 <form class="search" action="/log"> 274 <form class="search" action="/log">
272 275
273 <p><input name="rev" id="search1" type="text" size="30" /></p> 276 <p><input name="rev" id="search1" type="text" size="30" value="" /></p>
274 <div id="hint">Find changesets by keywords (author, files, the commit message), revision 277 <div id="hint">Find changesets by keywords (author, files, the commit message), revision
275 number or hash, or <a href="/help/revsets">revset expression</a>.</div> 278 number or hash, or <a href="/help/revsets">revset expression</a>.</div>
276 </form> 279 </form>
277 280
278 <table class="bigtable"> 281 <table class="bigtable">