blob: ab50acf2157d917a762a7aa493b624c89892726a [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<title><%= title() // loc('korap_desc') %></title>
<meta charset="utf-8" />
<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" />
<link href="<%= stash 'prefix' %>/favicon.ico" rel="shortcut icon" type="image/x-icon" />
<link href="<%= stash 'prefix' %>/css/kalamar-<%= $Kalamar::VERSION %>.css" type="text/css" rel="stylesheet" />
%= javascript begin
window.KorAP = window.KorAP || {};
% my $api = url_for('index');
% $api =~ s!/$!!;
KorAP.URL = '<%== $api %>';
% end
% if ($c->app->mode eq 'development') {
<script data-main="/js/src/app/devel" src="/js/lib/require.js" async="async"></script>
% } else {
<script src="<%= (stash('prefix') // '') . '/js/' . loc('jsFile', 'kalamar-' . $Kalamar::VERSION . '-en.js') %>" async="async"></script>
% };
</head>
% my $embedded = 0;
% $embedded = 1 if stash('embedded');
<body class="no-js<% if ($embedded) { %> embedded<% } %>">
<script>document.body.classList.remove('no-js');</script>
<div id="kalamar-bg"></div>
%= include 'partial/side', embedded => $embedded
% unless ($embedded) {
%= include 'partial/header'
% }
<noscript>
<p id="activate"><%= loc 'activateJS' %></p>
</noscript>
<main<% if (stash 'main_class') { %> class="<%= stash 'main_class' %>"<% } %>>
%= content
</main>
% unless ($embedded) {
%= include 'partial/footer'
% };
%= notifications 'Kalamar::Plugin::Notifications'
%= piwik_tag
</body>
</html>