blob: a729e4241a3b4b33fd1b9ae0b238e151d2bfe106 [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" />
Nils Diewald705b74a2015-05-07 23:57:34 +00007 <link href="<%= stash 'prefix' %>/img/favicon.ico" rel="shortcut icon" type="image/x-icon" />
8 <link href="<%= stash 'prefix' %>/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
Nils Diewaldb8cd4d62015-05-08 00:37:46 +000037<script src="<%= (stash('prefix') // '') . '/js/' . loc('jsFile', 'kalamar-' . $Kalamar::VERSION . '-en.js') %>"></script>
Nils Diewald5e485462015-05-07 20:33:04 +000038%= javascript begin
39 window.KorAP = window.KorAP || {};
Nils Diewald29f25ee2015-05-08 00:51:47 +000040 % my $api = url_for('index');
Nils Diewald5e485462015-05-07 20:33:04 +000041 % $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>