From f149824c39ac11d4e94ac5a027e9a0b3ff8ccf2d Mon Sep 17 00:00:00 2001 From: yflory Date: Mon, 25 Mar 2019 14:44:22 +0100 Subject: [PATCH] Add an icon to expiring pad in the drive --- www/drive/inner.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/www/drive/inner.js b/www/drive/inner.js index 4601533b9..850db5450 100644 --- a/www/drive/inner.js +++ b/www/drive/inner.js @@ -120,6 +120,7 @@ define([ var $ownerIcon = $('', {"class": "fa fa-id-card"}); var $tagsIcon = $('', {"class": "fa " + faTags}); var $passwordIcon = $('', {"class": "fa fa-lock"}); + var $expirableIcon = $('', {"class": "fa fa-clock-o"}); var LS_LAST = "app-drive-lastOpened"; var LS_OPENED = "app-drive-openedFolders"; @@ -1442,6 +1443,10 @@ define([ var $password = $passwordIcon.clone().appendTo($state); $password.attr('title', Messages.fm_passwordProtected || ''); } + if (data.expire) { + var $expire = $expirableIcon.clone().appendTo($state); + $expire.attr('title', Messages._getKey('fm_expirablePad', [new Date(data.expire).toLocaleString()])); + } _addOwnership($span, $state, data); var name = manager.getTitle(element);