% # vim:set sw=4 ts=4 sts=4 ft=html.epl expandtab:
% if (!defined(stash('f')) && defined(stash('msg'))) {
<%= stash('msg') %>
% } else {
<%= stash('f')->filename %>
% if (defined(stash('msg'))) {
<%= stash('msg') %>
% } else {
<%= l('Please wait while we are getting your file') %>
%= javascript begin
var ws_url = '<%= url_for('download')->to_abs() %>';
var i18n = {
badkey: '<%= l('It seems that the key in your URL is incorrect. Please, verify your URL.') %>',
confirmExit: '<%= l('You have attempted to leave this page. The download will be canceled. Are you sure?') %>',
download: '<%= l('Download') %>',
loading: '<%= l('Asking for file part XX1 of %1', stash('f')->nbslices) %>',
nokey: '<%= l('You don\'t seem to have a key in your URL. You won\'t be able to decrypt the file. Download canceled.') %>',
}
% end
%= javascript '/js/sjcl.js'
%= javascript '/js/lufi-down.js'
% }
% }