blob: d33e45daae359385db5d127ecf2a6fa0fe52a9c4 [file] [log] [blame]
Nils Diewaldab4d3ca2015-04-17 01:48:43 +00001<header>
Nils Diewaldfccfbcb2015-04-29 20:48:19 +00002 <a href="/"
Nils Diewalda898dac2015-05-06 21:04:16 +00003 class="logo"><h1><span><%= title() // loc('korap_desc') %></span></h1></a>
Nils Diewaldab4d3ca2015-04-17 01:48:43 +00004 <div class="button top">
Nils Diewald19402142015-04-30 15:44:52 +00005<!--
Nils Diewaldfccfbcb2015-04-29 20:48:19 +00006 <a href="#"
7 class="login"
8 title="<%= loc 'login' %>"><span><%= loc 'login' %></span></a>
Nils Diewaldfccfbcb2015-04-29 20:48:19 +00009-->
Nils Diewald19402142015-04-30 15:44:52 +000010 </div>
Nils Diewaldfccfbcb2015-04-29 20:48:19 +000011 <form autocomplete="off" action="<%= url_for 'index' %>">
Nils Diewaldab4d3ca2015-04-17 01:48:43 +000012 <div id="searchbar">
Nils Diewaldfccfbcb2015-04-29 20:48:19 +000013 %= search_field 'q', id => 'q-field', autofocus => 'autofocus', placeholder => loc('searchplaceholder')
Nils Diewaldab4d3ca2015-04-17 01:48:43 +000014 <button type="submit" title="<%= loc 'go' %>"><span><%= loc 'go' %></span></button>
15 </div>
Nils Diewaldfccfbcb2015-04-29 20:48:19 +000016 <!-- Search in the following virtual collection -->
17 <!--
Nils Diewaldab4d3ca2015-04-17 01:48:43 +000018 <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 Diewaldfccfbcb2015-04-29 20:48:19 +000021 -->
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 Diewaldab4d3ca2015-04-17 01:48:43 +000025 </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 Diewaldfccfbcb2015-04-29 20:48:19 +000030<!--
Nils Diewaldab4d3ca2015-04-17 01:48:43 +000031 % 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 Diewaldfccfbcb2015-04-29 20:48:19 +000037-->
Nils Diewaldab4d3ca2015-04-17 01:48:43 +000038 <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>