blob: ef590d57fabc6da922b40326b95eba718bb9162a [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 Diewald845282c2015-05-14 07:53:03 +00009 %= javascript begin
10 window.KorAP = window.KorAP || {};
11 % my $api = url_for('index');
12 % $api =~ s!/$!!;
13 KorAP.URL = '<%== $api %>';
14% end
Nils Diewalde2647aa2015-05-08 00:54:45 +000015 <script src="<%= (stash('prefix') // '') . '/js/' . loc('jsFile', 'kalamar-' . $Kalamar::VERSION . '-en.js') %>" async="async"></script>
Nils Diewald5e485462015-05-07 20:33:04 +000016 </head>
17% my $embedded = 0;
18% $embedded = 1 if stash('embedded');
19 <body<% if ($embedded) { %> class="embedded"<% } %>>
20 <div id="kalamar-bg"></div>
21
22 % unless ($embedded) {
23 %= include 'partial/header'
24 % }
25
26 % my $aside = content_for('sidebar');
27 <aside tabindex="0" class="<% unless (length($aside) > 0) { %>off<% } elsif (stash('sidebar_active')) { %>active<% } %>">
28 <div>
29 %= $aside
30 </div>
31 </aside>
32
33 <main<% if (stash 'main_class') { %> class="<%= stash 'main_class' %>"<% } %>>
34 %= content
35 </main>
36
37 % unless ($embedded) {
38 <footer>
39 <a href="http://korap.ids-mannheim.de/"><%= loc 'about' %></a>
40 <%= doc_link_to 'V '. $Kalamar::VERSION, 'korap', 'kalamar' %>
41 </footer>
Nils Diewald5e485462015-05-07 20:33:04 +000042 % };
Nils Diewalda0defc42015-05-07 23:54:17 +000043%= notifications 'Alertify', -no_include
Nils Diewald5e485462015-05-07 20:33:04 +000044 </body>
45</html>