blob: af8feb49d0397192506a352b3f991a50fc01dc0e [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" />
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) {
Akron27ae9ec2015-06-23 00:43:21 +020023 %= include 'partial/header'
Nils Diewald5e485462015-05-07 20:33:04 +000024 % }
25
Akron189b3592016-01-04 20:56:46 +010026% if (1) { # user not logged in
27% content_for 'sidebar', begin
28<fieldset>
29 <form>
30 <legend><span><%= loc 'login' %></span></legend>
31 <input type="text" name="handle_or_email" placeholder="<%= loc 'email' %>" />
32 <div>
33 <input type="password" name="pwd" placeholder="<%= loc 'pwd' %>" />
34 <button type="submit"><span><%= loc 'go' %></span></button>
35 </div>
36 </form>
37</fieldset>
38% end
39% }
40
Nils Diewald5e485462015-05-07 20:33:04 +000041 % my $aside = content_for('sidebar');
42 <aside tabindex="0" class="<% unless (length($aside) > 0) { %>off<% } elsif (stash('sidebar_active')) { %>active<% } %>">
43 <div>
Akron27ae9ec2015-06-23 00:43:21 +020044 %= $aside
Nils Diewald5e485462015-05-07 20:33:04 +000045 </div>
46 </aside>
47
48 <main<% if (stash 'main_class') { %> class="<%= stash 'main_class' %>"<% } %>>
49 %= content
50 </main>
51
52 % unless ($embedded) {
53 <footer>
54 <a href="http://korap.ids-mannheim.de/"><%= loc 'about' %></a>
55 <%= doc_link_to 'V '. $Kalamar::VERSION, 'korap', 'kalamar' %>
56 </footer>
Nils Diewald5e485462015-05-07 20:33:04 +000057 % };
Akron27ae9ec2015-06-23 00:43:21 +020058 %= notifications 'Kalamar::Plugin::Notifications'
Nils Diewald5e485462015-05-07 20:33:04 +000059 </body>
60</html>