diff --git a/customize.dist/translations/messages.fr.js b/customize.dist/translations/messages.fr.js
index 059a315cd..ed3c2c787 100644
--- a/customize.dist/translations/messages.fr.js
+++ b/customize.dist/translations/messages.fr.js
@@ -220,7 +220,7 @@ define(function () {
"Quiconque se trouve en possession de celle-ci peut modifier ou supprimer tous les fichiers de ce gestionnaire.
" +
'';
out.fm_backup_title = 'URL de secours';
-
+ out.fm_nameFile = 'Comment souhaitez-vous nommer ce fichier ?';
// File - Context menu
out.fc_newfolder = "Nouveau dossier";
out.fc_rename = "Renommer";
diff --git a/customize.dist/translations/messages.js b/customize.dist/translations/messages.js
index 2c3f1d719..2ee530e52 100644
--- a/customize.dist/translations/messages.js
+++ b/customize.dist/translations/messages.js
@@ -217,6 +217,7 @@ define(function () {
"Anybody with that URL can edit or remove all the files in your file manager.
" +
'';
out.fm_backup_title = 'Backup URL';
+ out.fm_nameFile = 'How would you like to name that file?';
// File - Context menu
out.fc_newfolder = "New folder";
out.fc_rename = "Rename";
diff --git a/www/common/toolbar.js b/www/common/toolbar.js
index 810646e24..055e60fb6 100644
--- a/www/common/toolbar.js
+++ b/www/common/toolbar.js
@@ -270,11 +270,11 @@ define([
'class': 'lag'
});
var title;
- if (typeof lag !== "undefined") {
+ if (lag) {
lagErrors = 0;
firstConnection = false;
title = Messages.lag + ' : ' + lag + ' ms\n';
- if (lag.waiting || lag > 1000) {
+ if (lag && lag.waiting || lag > 1000) {
lagLight.addClass('lag-orange');
title += Messages.orangeLight;
} else {
diff --git a/www/drive/file.css b/www/drive/file.css
index f406bf4c7..4ac44552f 100644
--- a/www/drive/file.css
+++ b/www/drive/file.css
@@ -180,6 +180,9 @@ span.fa-folder-open {
display: flex;
flex-flow: column;
}
+#content.readonly {
+ background: #e6e6e6;
+}
#content h1 {
padding-left: 10px;
margin-top: 10px;
diff --git a/www/drive/file.less b/www/drive/file.less
index 20b7175ca..fd18f54f3 100644
--- a/www/drive/file.less
+++ b/www/drive/file.less
@@ -3,6 +3,7 @@
@tree-lines-col: #888;
@content-bg: @tree-bg;
+@content-bg-ro: darken(@content-bg, 10%);
@content-fg: @tree-fg;
@info-box-bg: #ddddff;
@info-box-border: #bbb;
@@ -219,6 +220,9 @@ span {
flex: 1;
display: flex;
flex-flow: column;
+ &.readonly {
+ background: @content-bg-ro;
+ }
h1 {
padding-left: 10px;
margin-top: 10px;
diff --git a/www/drive/inner.html b/www/drive/inner.html
index 421443c4e..ed34f4f1a 100644
--- a/www/drive/inner.html
+++ b/www/drive/inner.html
@@ -29,10 +29,10 @@