Mercurial > hg
annotate templates/search.tmpl @ 538:7140bc781655
Add multiple keyword search to hgweb
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Add multiple keyword search to hgweb
People kept pestering me about this one. Now it's done.
If you type a tag/id/rev in the search box, it takes you to that entry
in the changelog.
If you type some other random keywords, it does a case-insensitive
search through the history and returns the most recent N items.
It's not super-fast, but it's serviceable.
manifest hash: e8fa980dee92cf78c04051d3028da9b07a45f3de
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQFCxO6JywK+sNU5EO8RArAwAKCq+9qO/OL0mQxa1J7C77Z6AcZoWgCfbiDC
AZ5KllldwBtdRRREn7HH6go=
=sIy0
-----END PGP SIGNATURE-----
author | mpm@selenic.com |
---|---|
date | Thu, 30 Jun 2005 23:19:37 -0800 |
parents | |
children | 17703aa4491e |
rev | line source |
---|---|
538 | 1 #header# |
2 <title>#repo|escape#: searching for #query|escape#</title> | |
3 </head> | |
4 <body> | |
5 | |
6 <div class="buttons"> | |
7 <a href="?cmd=changelog;rev=#rev#">changelog</a> | |
8 <a href="?cmd=tags">tags</a> | |
9 <a href="?cmd=manifest;manifest=#manifest#;path=/">manifest</a> | |
10 </div> | |
11 | |
12 <h2>searching for #query|escape#</h2> | |
13 | |
14 <form> | |
15 search: | |
16 <input type="hidden" name="cmd" value="changelog"> | |
17 <input name="rev" type="text" width="30" value="#query|escape#"> | |
18 </form> | |
19 | |
20 #entries# | |
21 | |
22 <form> | |
23 search: | |
24 <input type="hidden" name="cmd" value="changelog"> | |
25 <input name="rev" type="text" width="30"> | |
26 </form> | |
27 | |
28 #footer# |