Mercurial > wikked
annotate 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 |
rev | line source |
---|---|
149
d29e2f337b00
Updated to Bootstrap 3.0.
Ludovic Chabant <ludovic@chabant.com>
parents:
90
diff
changeset
|
1 <nav class="navbar" role="navigation"> |
d29e2f337b00
Updated to Bootstrap 3.0.
Ludovic Chabant <ludovic@chabant.com>
parents:
90
diff
changeset
|
2 <div class="navbar-header"> |
d29e2f337b00
Updated to Bootstrap 3.0.
Ludovic Chabant <ludovic@chabant.com>
parents:
90
diff
changeset
|
3 <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#wikked-navbar-collapse"> |
d29e2f337b00
Updated to Bootstrap 3.0.
Ludovic Chabant <ludovic@chabant.com>
parents:
90
diff
changeset
|
4 <span class="sr-only">Toggle navigation</span> |
d29e2f337b00
Updated to Bootstrap 3.0.
Ludovic Chabant <ludovic@chabant.com>
parents:
90
diff
changeset
|
5 <span class="icon-bar"></span> |
d29e2f337b00
Updated to Bootstrap 3.0.
Ludovic Chabant <ludovic@chabant.com>
parents:
90
diff
changeset
|
6 <span class="icon-bar"></span> |
d29e2f337b00
Updated to Bootstrap 3.0.
Ludovic Chabant <ludovic@chabant.com>
parents:
90
diff
changeset
|
7 <span class="icon-bar"></span> |
d29e2f337b00
Updated to Bootstrap 3.0.
Ludovic Chabant <ludovic@chabant.com>
parents:
90
diff
changeset
|
8 </button> |
d29e2f337b00
Updated to Bootstrap 3.0.
Ludovic Chabant <ludovic@chabant.com>
parents:
90
diff
changeset
|
9 <a class="navbar-brand" href="/">Home</a> |
d29e2f337b00
Updated to Bootstrap 3.0.
Ludovic Chabant <ludovic@chabant.com>
parents:
90
diff
changeset
|
10 </div> |
d29e2f337b00
Updated to Bootstrap 3.0.
Ludovic Chabant <ludovic@chabant.com>
parents:
90
diff
changeset
|
11 |
d29e2f337b00
Updated to Bootstrap 3.0.
Ludovic Chabant <ludovic@chabant.com>
parents:
90
diff
changeset
|
12 <div class="collapse navbar-collapse" id="wikked-navbar-collapse"> |
d29e2f337b00
Updated to Bootstrap 3.0.
Ludovic Chabant <ludovic@chabant.com>
parents:
90
diff
changeset
|
13 <ul class="nav navbar-nav"> |
d29e2f337b00
Updated to Bootstrap 3.0.
Ludovic Chabant <ludovic@chabant.com>
parents:
90
diff
changeset
|
14 {{#ifneq action to='read'}}<li><a href="{{url_read}}">Read</a></li>{{/ifneq}} |
d29e2f337b00
Updated to Bootstrap 3.0.
Ludovic Chabant <ludovic@chabant.com>
parents:
90
diff
changeset
|
15 {{#ifneq action to='edit'}}<li><a href="{{url_edit}}">Edit</a></li>{{/ifneq}} |
d29e2f337b00
Updated to Bootstrap 3.0.
Ludovic Chabant <ludovic@chabant.com>
parents:
90
diff
changeset
|
16 {{#ifneq action to='history'}}<li><a href="{{url_hist}}">History</a></li>{{/ifneq}} |
d29e2f337b00
Updated to Bootstrap 3.0.
Ludovic Chabant <ludovic@chabant.com>
parents:
90
diff
changeset
|
17 </ul> |
d29e2f337b00
Updated to Bootstrap 3.0.
Ludovic Chabant <ludovic@chabant.com>
parents:
90
diff
changeset
|
18 <form role="search" id="search" class="navbar-form navbar-left"> |
d29e2f337b00
Updated to Bootstrap 3.0.
Ludovic Chabant <ludovic@chabant.com>
parents:
90
diff
changeset
|
19 <div class="form-group"> |
d29e2f337b00
Updated to Bootstrap 3.0.
Ludovic Chabant <ludovic@chabant.com>
parents:
90
diff
changeset
|
20 <label class="sr-only" for="search-query">Search query</label> |
152
8e75c12b1cc9
Search preview changes:
Ludovic Chabant <ludovic@chabant.com>
parents:
149
diff
changeset
|
21 <input type="text" name="q" id="search-query" class="form-control input-sm" placeholder="Search..."></input> |
8e75c12b1cc9
Search preview changes:
Ludovic Chabant <ludovic@chabant.com>
parents:
149
diff
changeset
|
22 <ul id="search-preview"></ul> |
149
d29e2f337b00
Updated to Bootstrap 3.0.
Ludovic Chabant <ludovic@chabant.com>
parents:
90
diff
changeset
|
23 </div> |
d29e2f337b00
Updated to Bootstrap 3.0.
Ludovic Chabant <ludovic@chabant.com>
parents:
90
diff
changeset
|
24 <button type="submit" class="btn btn-sm btn-default">Search</button> |
d29e2f337b00
Updated to Bootstrap 3.0.
Ludovic Chabant <ludovic@chabant.com>
parents:
90
diff
changeset
|
25 </form> |
d29e2f337b00
Updated to Bootstrap 3.0.
Ludovic Chabant <ludovic@chabant.com>
parents:
90
diff
changeset
|
26 <ul class="nav navbar-nav navbar-right"> |
d29e2f337b00
Updated to Bootstrap 3.0.
Ludovic Chabant <ludovic@chabant.com>
parents:
90
diff
changeset
|
27 {{#if username}} |
d29e2f337b00
Updated to Bootstrap 3.0.
Ludovic Chabant <ludovic@chabant.com>
parents:
90
diff
changeset
|
28 <li><a href="{{url_profile}}">{{username}}</a></li> |
d29e2f337b00
Updated to Bootstrap 3.0.
Ludovic Chabant <ludovic@chabant.com>
parents:
90
diff
changeset
|
29 <li><a href="{{url_logout}}">Logout</a></li> |
d29e2f337b00
Updated to Bootstrap 3.0.
Ludovic Chabant <ludovic@chabant.com>
parents:
90
diff
changeset
|
30 {{else}} |
d29e2f337b00
Updated to Bootstrap 3.0.
Ludovic Chabant <ludovic@chabant.com>
parents:
90
diff
changeset
|
31 <li><a href="{{url_login}}">Login</a></li> |
d29e2f337b00
Updated to Bootstrap 3.0.
Ludovic Chabant <ludovic@chabant.com>
parents:
90
diff
changeset
|
32 {{/if}} |
d29e2f337b00
Updated to Bootstrap 3.0.
Ludovic Chabant <ludovic@chabant.com>
parents:
90
diff
changeset
|
33 </ul> |
d29e2f337b00
Updated to Bootstrap 3.0.
Ludovic Chabant <ludovic@chabant.com>
parents:
90
diff
changeset
|
34 </div> |
d29e2f337b00
Updated to Bootstrap 3.0.
Ludovic Chabant <ludovic@chabant.com>
parents:
90
diff
changeset
|
35 </nav> |