blob: ac6f344856ec240e2aed213edbcc7c5f1be10d28 [file] [log] [blame]
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +02001<nav class="navbar">
Akronf47765d2023-04-28 11:06:57 +02002 <%= link_to 'index', class => 'logo', begin %><h1><span><%= title() // loc('korap_desc') %></span><% if (loc('title_addon')) { %><div class="logoaddon"><%= loc('title_addon') %></div><% } %></h1><% end %>
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +02003
4 <div class="navbar-group">
Akronc82b1bc2018-11-18 18:06:14 +01005 %= content_block 'headerButtonGroup'
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +02006 %= include 'partial/auth/login'
Nils Diewald19402142015-04-30 15:44:52 +00007 </div>
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +02008
9 <div class="burger-icon"></div>
10</nav>
11
12<header>
Akronc1457bf2015-06-11 19:24:00 +020013 <form autocomplete="off" action="<%= url_for 'index' %>" id="searchform">
Nils Diewaldab4d3ca2015-04-17 01:48:43 +000014 <div id="searchbar">
Akron36c020f2018-03-19 16:25:26 +010015 %= search_field 'q', id => 'q-field', autofocus => 'autofocus', placeholder => loc('searchplaceholder'), spellcheck => 'false', autocomplete => 'off', autocorrect => 'off', autocapitalize => 'off'
hebasta5df796f2019-05-21 15:27:12 +020016 <button type="submit" id="qsubmit" title="<%= loc 'go' %>"><span><%= loc 'go' %></span></button>
Nils Diewaldab4d3ca2015-04-17 01:48:43 +000017 </div>
Akronc1457bf2015-06-11 19:24:00 +020018
Akroncd42a142019-07-12 18:55:37 +020019 <!-- Search in the following virtual corpus -->
Nils Diewaldab4d3ca2015-04-17 01:48:43 +000020 <div id="vc-view"></div>
Akronc1457bf2015-06-11 19:24:00 +020021 <%= loc 'in' %>
Akron179c8ac2015-06-30 19:30:50 +020022 %# TODO: Create 'align' parameter
Akroncd42a142019-07-12 18:55:37 +020023 %= text_field 'cq', id => 'cq'
Akron9cc3eaf2015-06-10 22:15:52 +020024
Nils Diewaldfccfbcb2015-04-29 20:48:19 +000025 <%= loc 'with' %>
26 <span class="select">
Akron397552c2023-09-18 12:13:33 +020027 %= select_field 'ql', [[loc('QL_poliqarp') => 'poliqarp'], [loc('QL_cosmas2') => 'cosmas2'], [loc('QL_annis') => 'annis'], [loc('QL_cqp') => 'cqp'], [loc('QL_cql') => 'cql'], [loc('QL_fcsql') => 'fcsql']], id => 'ql-field'
Nils Diewaldab4d3ca2015-04-17 01:48:43 +000028 </span>
29 <div class="button right">
30 % param(cutoff => 1) unless param 'q';
31 %= check_box cutoff => 1, id => 'q-cutoff-field', class => 'checkbox'
Akrone9e5e832019-04-02 14:56:23 +020032 <label for="q-cutoff-field" title="<%= loc('glimpse_desc') %>"><span id="glimpse"></span><%= loc('glimpse') %></label>
Akron6a535d42015-08-26 20:16:58 +020033 <%= link_to 'doc_start', title => loc('tutorial'), class => "tutorial", id => "view-tutorial", tabindex => '-1', begin %><span><%= loc 'tutorial' %></span><% end %>
Nils Diewaldab4d3ca2015-04-17 01:48:43 +000034 </div>
Akron1120a582017-10-17 12:29:16 +020035 <div class="clear"></div>
Nils Diewaldab4d3ca2015-04-17 01:48:43 +000036 </form>
37</header>