Mercurial > wikked
comparison static/tpl/nav.html @ 152:8e75c12b1cc9
Search preview changes:
- Typing queries in the search box now runs n-gram searches with the
`whoosh` indexer.
- Search preview matches page titles and shows a drop-down list of pages.
Fixed naming collision problem with `whoosh` indexer.
Fixed inheritance problem with `elastic` indexer.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Mon, 23 Dec 2013 13:29:00 -0800 |
parents | d29e2f337b00 |
children | 6cb5445e90b9 |
comparison
equal
deleted
inserted
replaced
151:f32af0888382 | 152:8e75c12b1cc9 |
---|---|
16 {{#ifneq action to='history'}}<li><a href="{{url_hist}}">History</a></li>{{/ifneq}} | 16 {{#ifneq action to='history'}}<li><a href="{{url_hist}}">History</a></li>{{/ifneq}} |
17 </ul> | 17 </ul> |
18 <form role="search" id="search" class="navbar-form navbar-left"> | 18 <form role="search" id="search" class="navbar-form navbar-left"> |
19 <div class="form-group"> | 19 <div class="form-group"> |
20 <label class="sr-only" for="search-query">Search query</label> | 20 <label class="sr-only" for="search-query">Search query</label> |
21 <input type="text" name="q" id="search-query" class="form-control input-sm" placeholder="Search..."> | 21 <input type="text" name="q" id="search-query" class="form-control input-sm" placeholder="Search..."></input> |
22 <ul id="search-preview"></ul> | |
22 </div> | 23 </div> |
23 <button type="submit" class="btn btn-sm btn-default">Search</button> | 24 <button type="submit" class="btn btn-sm btn-default">Search</button> |
24 </form> | 25 </form> |
25 <ul class="nav navbar-nav navbar-right"> | 26 <ul class="nav navbar-nav navbar-right"> |
26 {{#if username}} | 27 {{#if username}} |