blob: 6280855acde24f84782bef3084c46ba96e277143 [file] [log] [blame]
Nils Diewald5e485462015-05-07 20:33:04 +00001<!DOCTYPE html>
2<html>
3 <head>
4 <title><%= title() // loc('korap_desc') %></title>
5 <meta charset="utf-8" />
6 <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=false, user-scalable=no" />
7 <link href="/img/favicon.ico" rel="shortcut icon" type="image/x-icon" />
8 <link href="/css/kalamar-<%= $Kalamar::VERSION %>.css" type="text/css" rel="stylesheet" />
Nils Diewald5e485462015-05-07 20:33:04 +00009 </head>
10% my $embedded = 0;
11% $embedded = 1 if stash('embedded');
12 <body<% if ($embedded) { %> class="embedded"<% } %>>
13 <div id="kalamar-bg"></div>
14
15 % unless ($embedded) {
16 %= include 'partial/header'
17 % }
18
19 % my $aside = content_for('sidebar');
20 <aside tabindex="0" class="<% unless (length($aside) > 0) { %>off<% } elsif (stash('sidebar_active')) { %>active<% } %>">
21 <div>
22 %= $aside
23 </div>
24 </aside>
25
26 <main<% if (stash 'main_class') { %> class="<%= stash 'main_class' %>"<% } %>>
27 %= content
28 </main>
29
30 % unless ($embedded) {
31 <footer>
32 <a href="http://korap.ids-mannheim.de/"><%= loc 'about' %></a>
33 <%= doc_link_to 'V '. $Kalamar::VERSION, 'korap', 'kalamar' %>
34 </footer>
Nils Diewald5e485462015-05-07 20:33:04 +000035 % };
Nils Diewalda0defc42015-05-07 23:54:17 +000036
37%= javascript '/js/' . loc('jsFile', 'kalamar-' . $Kalamar::VERSION . '-en.js')
Nils Diewald5e485462015-05-07 20:33:04 +000038%= javascript begin
39 window.KorAP = window.KorAP || {};
40 % my $api = url_for('index')->to_abs;
41 % $api =~ s!/$!!;
42 KorAP.URL = '<%== $api %>';
43% end
Nils Diewalda0defc42015-05-07 23:54:17 +000044%= notifications 'Alertify', -no_include
Nils Diewald5e485462015-05-07 20:33:04 +000045 </body>
46</html>