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