blob: ab50acf2157d917a762a7aa493b624c89892726a [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" />
Akronb3025182015-05-27 23:02:44 +02007 <link href="<%= stash 'prefix' %>/favicon.ico" rel="shortcut icon" type="image/x-icon" />
Nils Diewald705b74a2015-05-07 23:57:34 +00008 <link href="<%= stash 'prefix' %>/css/kalamar-<%= $Kalamar::VERSION %>.css" type="text/css" rel="stylesheet" />
Akron4036d542018-02-12 13:17:09 +01009%= javascript begin
Nils Diewald845282c2015-05-14 07:53:03 +000010 window.KorAP = window.KorAP || {};
11 % my $api = url_for('index');
12 % $api =~ s!/$!!;
13 KorAP.URL = '<%== $api %>';
14% end
Akron4036d542018-02-12 13:17:09 +010015
16% if ($c->app->mode eq 'development') {
Akrona68559c2018-02-13 15:02:18 +010017 <script data-main="/js/src/app/devel" src="/js/lib/require.js" async="async"></script>
Akron4036d542018-02-12 13:17:09 +010018% } else {
Nils Diewalde2647aa2015-05-08 00:54:45 +000019 <script src="<%= (stash('prefix') // '') . '/js/' . loc('jsFile', 'kalamar-' . $Kalamar::VERSION . '-en.js') %>" async="async"></script>
Akron4036d542018-02-12 13:17:09 +010020% };
Nils Diewald5e485462015-05-07 20:33:04 +000021 </head>
22% my $embedded = 0;
23% $embedded = 1 if stash('embedded');
Akronae8f31c2017-11-28 18:05:52 +010024 <body class="no-js<% if ($embedded) { %> embedded<% } %>">
25 <script>document.body.classList.remove('no-js');</script>
Nils Diewald5e485462015-05-07 20:33:04 +000026 <div id="kalamar-bg"></div>
27
Akrone4968442018-05-22 15:32:07 +020028
29 %= include 'partial/side', embedded => $embedded
30
Akron4751da62017-06-07 22:37:10 +020031 % unless ($embedded) {
32 %= include 'partial/header'
33 % }
Akrond1741ae2017-11-29 09:58:53 +010034
35
36 <noscript>
37 <p id="activate"><%= loc 'activateJS' %></p>
38 </noscript>
Akron4751da62017-06-07 22:37:10 +020039
Nils Diewald5e485462015-05-07 20:33:04 +000040 <main<% if (stash 'main_class') { %> class="<%= stash 'main_class' %>"<% } %>>
41 %= content
42 </main>
43
44 % unless ($embedded) {
Akrone4968442018-05-22 15:32:07 +020045 %= include 'partial/footer'
Nils Diewald5e485462015-05-07 20:33:04 +000046 % };
Akron27ae9ec2015-06-23 00:43:21 +020047 %= notifications 'Kalamar::Plugin::Notifications'
Akron51757cb2018-05-16 13:10:08 +020048 %= piwik_tag
Nils Diewald5e485462015-05-07 20:33:04 +000049 </body>
50</html>