Nils Diewald | 5e48546 | 2015-05-07 20:33:04 +0000 | [diff] [blame] | 1 | <!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 Diewald | 705b74a | 2015-05-07 23:57:34 +0000 | [diff] [blame] | 7 | <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 Diewald | e2647aa | 2015-05-08 00:54:45 +0000 | [diff] [blame^] | 9 | <script src="<%= (stash('prefix') // '') . '/js/' . loc('jsFile', 'kalamar-' . $Kalamar::VERSION . '-en.js') %>" async="async"></script> |
Nils Diewald | 5e48546 | 2015-05-07 20:33:04 +0000 | [diff] [blame] | 10 | </head> |
| 11 | % my $embedded = 0; |
| 12 | % $embedded = 1 if stash('embedded'); |
| 13 | <body<% if ($embedded) { %> class="embedded"<% } %>> |
| 14 | <div id="kalamar-bg"></div> |
| 15 | |
| 16 | % unless ($embedded) { |
| 17 | %= include 'partial/header' |
| 18 | % } |
| 19 | |
| 20 | % my $aside = content_for('sidebar'); |
| 21 | <aside tabindex="0" class="<% unless (length($aside) > 0) { %>off<% } elsif (stash('sidebar_active')) { %>active<% } %>"> |
| 22 | <div> |
| 23 | %= $aside |
| 24 | </div> |
| 25 | </aside> |
| 26 | |
| 27 | <main<% if (stash 'main_class') { %> class="<%= stash 'main_class' %>"<% } %>> |
| 28 | %= content |
| 29 | </main> |
| 30 | |
| 31 | % unless ($embedded) { |
| 32 | <footer> |
| 33 | <a href="http://korap.ids-mannheim.de/"><%= loc 'about' %></a> |
| 34 | <%= doc_link_to 'V '. $Kalamar::VERSION, 'korap', 'kalamar' %> |
| 35 | </footer> |
Nils Diewald | 5e48546 | 2015-05-07 20:33:04 +0000 | [diff] [blame] | 36 | % }; |
| 37 | %= javascript begin |
| 38 | window.KorAP = window.KorAP || {}; |
Nils Diewald | 29f25ee | 2015-05-08 00:51:47 +0000 | [diff] [blame] | 39 | % my $api = url_for('index'); |
Nils Diewald | 5e48546 | 2015-05-07 20:33:04 +0000 | [diff] [blame] | 40 | % $api =~ s!/$!!; |
| 41 | KorAP.URL = '<%== $api %>'; |
| 42 | % end |
Nils Diewald | a0defc4 | 2015-05-07 23:54:17 +0000 | [diff] [blame] | 43 | %= notifications 'Alertify', -no_include |
Nils Diewald | 5e48546 | 2015-05-07 20:33:04 +0000 | [diff] [blame] | 44 | </body> |
| 45 | </html> |