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