Uyen-Nhu Tran | a17b08d | 2025-02-18 19:14:55 +0100 | [diff] [blame^] | 1 | % content_block 'headerButtonGroup', { position => 50 }, begin |
| 2 | <h3 class="nav-link"><a class="link-guided-tour">Tour</a></h3> |
| 3 | % end |
| 4 | |
| 5 | % content_block 'headerButtonGroup', { position => 100 }, begin |
| 6 | <h3 class="nav-link"><a href="<%= url_for 'doc_start' %>" class="tutorial" id="view-tutorial"><%= loc "tutorial" %></a></h3> |
| 7 | % end |
| 8 | |
Uyen-Nhu Tran | 243fe73 | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 9 | <nav class="navbar"> |
Akron | f47765d | 2023-04-28 11:06:57 +0200 | [diff] [blame] | 10 | <%= 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 Tran | 243fe73 | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 11 | |
| 12 | <div class="navbar-group"> |
Akron | c82b1bc | 2018-11-18 18:06:14 +0100 | [diff] [blame] | 13 | %= content_block 'headerButtonGroup' |
Uyen-Nhu Tran | a17b08d | 2025-02-18 19:14:55 +0100 | [diff] [blame^] | 14 | %= include 'partial/auth/logout' |
Uyen-Nhu Tran | 243fe73 | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 15 | %= include 'partial/auth/login' |
Nils Diewald | 1940214 | 2015-04-30 15:44:52 +0000 | [diff] [blame] | 16 | </div> |
Uyen-Nhu Tran | 243fe73 | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 17 | |
| 18 | <div class="burger-icon"></div> |
| 19 | </nav> |
| 20 | |
| 21 | <header> |
Akron | c1457bf | 2015-06-11 19:24:00 +0200 | [diff] [blame] | 22 | <form autocomplete="off" action="<%= url_for 'index' %>" id="searchform"> |
Nils Diewald | ab4d3ca | 2015-04-17 01:48:43 +0000 | [diff] [blame] | 23 | <div id="searchbar"> |
Akron | 36c020f | 2018-03-19 16:25:26 +0100 | [diff] [blame] | 24 | %= search_field 'q', id => 'q-field', autofocus => 'autofocus', placeholder => loc('searchplaceholder'), spellcheck => 'false', autocomplete => 'off', autocorrect => 'off', autocapitalize => 'off' |
hebasta | 5df796f | 2019-05-21 15:27:12 +0200 | [diff] [blame] | 25 | <button type="submit" id="qsubmit" title="<%= loc 'go' %>"><span><%= loc 'go' %></span></button> |
Nils Diewald | ab4d3ca | 2015-04-17 01:48:43 +0000 | [diff] [blame] | 26 | </div> |
Akron | c1457bf | 2015-06-11 19:24:00 +0200 | [diff] [blame] | 27 | |
Akron | cd42a14 | 2019-07-12 18:55:37 +0200 | [diff] [blame] | 28 | <!-- Search in the following virtual corpus --> |
Nils Diewald | ab4d3ca | 2015-04-17 01:48:43 +0000 | [diff] [blame] | 29 | <div id="vc-view"></div> |
Akron | c1457bf | 2015-06-11 19:24:00 +0200 | [diff] [blame] | 30 | <%= loc 'in' %> |
Akron | 179c8ac | 2015-06-30 19:30:50 +0200 | [diff] [blame] | 31 | %# TODO: Create 'align' parameter |
Akron | cd42a14 | 2019-07-12 18:55:37 +0200 | [diff] [blame] | 32 | %= text_field 'cq', id => 'cq' |
Akron | 9cc3eaf | 2015-06-10 22:15:52 +0200 | [diff] [blame] | 33 | |
Nils Diewald | fccfbcb | 2015-04-29 20:48:19 +0000 | [diff] [blame] | 34 | <%= loc 'with' %> |
| 35 | <span class="select"> |
Akron | 397552c | 2023-09-18 12:13:33 +0200 | [diff] [blame] | 36 | %= 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 Diewald | ab4d3ca | 2015-04-17 01:48:43 +0000 | [diff] [blame] | 37 | </span> |
| 38 | <div class="button right"> |
| 39 | % param(cutoff => 1) unless param 'q'; |
| 40 | %= check_box cutoff => 1, id => 'q-cutoff-field', class => 'checkbox' |
Akron | e9e5e83 | 2019-04-02 14:56:23 +0200 | [diff] [blame] | 41 | <label for="q-cutoff-field" title="<%= loc('glimpse_desc') %>"><span id="glimpse"></span><%= loc('glimpse') %></label> |
Uyen-Nhu Tran | 4371466 | 2025-01-13 23:09:37 +0100 | [diff] [blame] | 42 | %# <%= link_to 'doc_start', title => loc('tutorial'), class => "tutorial", id => "view-tutorial", tabindex => '-1', begin %><span><%= loc 'tutorial' %></span><% end %> |
Nils Diewald | ab4d3ca | 2015-04-17 01:48:43 +0000 | [diff] [blame] | 43 | </div> |
Akron | 1120a58 | 2017-10-17 12:29:16 +0200 | [diff] [blame] | 44 | <div class="clear"></div> |
Nils Diewald | ab4d3ca | 2015-04-17 01:48:43 +0000 | [diff] [blame] | 45 | </form> |
| 46 | </header> |