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