Nils Diewald | ab4d3ca | 2015-04-17 01:48:43 +0000 | [diff] [blame] | 1 | <header> |
Nils Diewald | fccfbcb | 2015-04-29 20:48:19 +0000 | [diff] [blame^] | 2 | <a href="/" |
| 3 | class="logo" |
| 4 | title="<%= title %>"><h1><span><%= title %></span></h1></a> |
| 5 | <!-- |
Nils Diewald | ab4d3ca | 2015-04-17 01:48:43 +0000 | [diff] [blame] | 6 | <div class="button top"> |
Nils Diewald | fccfbcb | 2015-04-29 20:48:19 +0000 | [diff] [blame^] | 7 | <a href="#" |
| 8 | class="login" |
| 9 | title="<%= loc 'login' %>"><span><%= loc 'login' %></span></a> |
Nils Diewald | ab4d3ca | 2015-04-17 01:48:43 +0000 | [diff] [blame] | 10 | </div> |
Nils Diewald | fccfbcb | 2015-04-29 20:48:19 +0000 | [diff] [blame^] | 11 | --> |
| 12 | <form autocomplete="off" action="<%= url_for 'index' %>"> |
Nils Diewald | ab4d3ca | 2015-04-17 01:48:43 +0000 | [diff] [blame] | 13 | <div id="searchbar"> |
Nils Diewald | fccfbcb | 2015-04-29 20:48:19 +0000 | [diff] [blame^] | 14 | %= search_field 'q', id => 'q-field', autofocus => 'autofocus', placeholder => loc('searchplaceholder') |
Nils Diewald | ab4d3ca | 2015-04-17 01:48:43 +0000 | [diff] [blame] | 15 | <button type="submit" title="<%= loc 'go' %>"><span><%= loc 'go' %></span></button> |
| 16 | </div> |
Nils Diewald | fccfbcb | 2015-04-29 20:48:19 +0000 | [diff] [blame^] | 17 | <!-- Search in the following virtual collection --> |
| 18 | <!-- |
Nils Diewald | ab4d3ca | 2015-04-17 01:48:43 +0000 | [diff] [blame] | 19 | <div id="vc-view"></div> |
| 20 | <%= loc 'in' %> <input type="hidden" id="vc-name" name="vc-name" value="Wikipedia" /> |
| 21 | <input type="text" name="vc" id="vc" value="corpusID = Wikipedia" /> |
Nils Diewald | fccfbcb | 2015-04-29 20:48:19 +0000 | [diff] [blame^] | 22 | --> |
| 23 | <%= loc 'with' %> |
| 24 | <span class="select"> |
| 25 | %= select_field 'ql', [[Poliqarp => 'poliqarp'], ['Cosmas II' => 'cosmas2'], ['Annis' => 'annis'], ['CQL v1.2' => 'cql']], id => 'ql-field' |
Nils Diewald | ab4d3ca | 2015-04-17 01:48:43 +0000 | [diff] [blame] | 26 | </span> |
| 27 | <div class="button right"> |
| 28 | % param(cutoff => 1) unless param 'q'; |
| 29 | %= check_box cutoff => 1, id => 'q-cutoff-field', class => 'checkbox' |
| 30 | <label for="q-cutoff-field"><span></span><%= loc('glimpse') %></label> |
Nils Diewald | fccfbcb | 2015-04-29 20:48:19 +0000 | [diff] [blame^] | 31 | <!-- |
Nils Diewald | ab4d3ca | 2015-04-17 01:48:43 +0000 | [diff] [blame] | 32 | % unless (current_route 'tutorial') { |
| 33 | <a href="/doc/faq" |
| 34 | title="<%= loc 'faq' %>" |
| 35 | class="question" |
| 36 | id="view-faq"><span><%= loc 'faq' %></span></a> |
| 37 | % }; |
Nils Diewald | fccfbcb | 2015-04-29 20:48:19 +0000 | [diff] [blame^] | 38 | --> |
Nils Diewald | ab4d3ca | 2015-04-17 01:48:43 +0000 | [diff] [blame] | 39 | <a href="/doc" |
| 40 | title="<%= loc 'tutorial' %>" |
| 41 | class="tutorial" |
| 42 | id="view-tutorial"><span><%= loc 'tutorial' %></span></a> |
| 43 | </div> |
| 44 | </form> |
| 45 | </header> |