diff --git a/CHANGELOG b/CHANGELOG
index 64202de..2014614 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,6 +1,9 @@
Revision history for Lufi
?.??.? ????-??-??
+ - Notifications when uploading and downloading files (#181)
+
+0.04.6 2019-11-07
- Now can send large files (>2Gio) while using a DB other than SQLite (#165)
- Use customized instance name in
diff --git a/themes/default/lib/Lufi/I18N/lufi.pot b/themes/default/lib/Lufi/I18N/lufi.pot
index 0a3ec3b..47a989c 100644
--- a/themes/default/lib/Lufi/I18N/lufi.pot
+++ b/themes/default/lib/Lufi/I18N/lufi.pot
@@ -45,7 +45,7 @@ msgstr ""
msgid "%A %d %B %Y at %T"
msgstr ""
-#: themes/default/templates/partial/index.js.ep:27
+#: themes/default/templates/partial/index.js.ep:28
msgid "(max size: XXX)"
msgstr ""
@@ -90,7 +90,7 @@ msgid "As Lufi is a free software licensed under of the terms of the to_abs() %>';
% }
var actionURL = '<%= url_for('/')->to_abs() %>';
var i18n = {
- enqueued: '<%= l('XXX file has been added to upload queue.') %>',
- confirmExit: '<%= l('You have attempted to leave this page. The upload will be canceled. Are you sure?') %>',
- copyAll: '<%= l('Copy all links to clipboard') %>',
- copySuccess: '<%= l('The link(s) has been copied to your clipboard') %>',
- copyFail: '<%= l('Unable to copy the link(s) to your clipboard') %>',
- cpText: '<%= l('Copy to clipboard') %>',
- delText: '<%= l('Deletion link') %>',
- dlText: '<%= l('Download link') %>',
- download: '<%= l('Download') %>',
- encrypting: '<%= l('Encrypting part XX1 of XX2') %>',
- expiration: '<%= l('Expiration:') %>',
- hit: '<%= l('Hit Enter, then Ctrl+C to copy the download link') %>',
- hits: '<%= l('Hit Enter, then Ctrl+C to copy all the download links') %>',
- mailTo: '<%= l('Send all links by email') %>',
- maxSize: '<%= l('(max size: XXX)') %>',
- noLimit: '<%= l('No expiration delay') %>',
- sending: '<%= l('Sending part XX1 of XX2. Please, be patient, the progress bar can take a while to move.') %>',
- wsProblem: '<%= l('Websocket communication error') %>',
+ enqueued: '<%= l('XXX file has been added to upload queue.') %>',
+ confirmExit: '<%= l('You have attempted to leave this page. The upload will be canceled. Are you sure?') %>',
+ copyAll: '<%= l('Copy all links to clipboard') %>',
+ copySuccess: '<%= l('The link(s) has been copied to your clipboard') %>',
+ copyFail: '<%= l('Unable to copy the link(s) to your clipboard') %>',
+ cpText: '<%= l('Copy to clipboard') %>',
+ delText: '<%= l('Deletion link') %>',
+ dlText: '<%= l('Download link') %>',
+ download: '<%= l('Download') %>',
+ encrypting: '<%= l('Encrypting part XX1 of XX2') %>',
+ expiration: '<%= l('Expiration:') %>',
+ fileUploaded: '<%= l('File uploaded') %>',
+ hit: '<%= l('Hit Enter, then Ctrl+C to copy the download link') %>',
+ hits: '<%= l('Hit Enter, then Ctrl+C to copy all the download links') %>',
+ mailTo: '<%= l('Send all links by email') %>',
+ maxSize: '<%= l('(max size: XXX)') %>',
+ noLimit: '<%= l('No expiration delay') %>',
+ sending: '<%= l('Sending part XX1 of XX2. Please, be patient, the progress bar can take a while to move.') %>',
+ wsProblem: '<%= l('Websocket communication error') %>',
};
var maxSize = <%= config('max_file_size') || 0 %>;
diff --git a/themes/default/templates/partial/render.js.ep b/themes/default/templates/partial/render.js.ep
index 174438a..4ca1131 100644
--- a/themes/default/templates/partial/render.js.ep
+++ b/themes/default/templates/partial/render.js.ep
@@ -6,6 +6,7 @@ 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('Get the file') %>',
+ fileDownloaded: '<%= l('File downloaded') %>',
loading: '<%= l('Asking for file part XX1 of %1', stash('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.') %>',
showZipContent: '<%= l('Show zip content') %>',
diff --git a/themes/default/templates/render.html.ep b/themes/default/templates/render.html.ep
index 4c06596..9deb809 100644
--- a/themes/default/templates/render.html.ep
+++ b/themes/default/templates/render.html.ep
@@ -45,6 +45,7 @@
%= javascript '/js/filesize.min.js'
%= javascript '/js/sjcl.js'
%= javascript '/js/jszip.min.js'
+%= javascript '/js/lufi-notifications.js'
%= javascript '/js/lufi-down.js'
% }
% }