diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-11-26 18:37:58 +0100 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-11-26 18:41:49 +0100 |
commit | f735c65db269ae86b1797664d639d9e38b368f49 (patch) | |
tree | 38ddacb1d7b5e791d4b7e4cb8362cd061596d289 /core/js | |
parent | e673c7dc498195d8c546b48a160458e2485b17e3 (diff) | |
download | nextcloud-server-f735c65db269ae86b1797664d639d9e38b368f49.tar.gz nextcloud-server-f735c65db269ae86b1797664d639d9e38b368f49.zip |
Better identification of the public link shares
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'core/js')
-rw-r--r-- | core/js/share/sharedialoglinkshareview.handlebars | 3 | ||||
-rw-r--r-- | core/js/sharedialoglinkshareview.js | 1 | ||||
-rw-r--r-- | core/js/sharetemplates.js | 4 |
3 files changed, 5 insertions, 3 deletions
diff --git a/core/js/share/sharedialoglinkshareview.handlebars b/core/js/share/sharedialoglinkshareview.handlebars index 4f58f632d1b..5889806e1ca 100644 --- a/core/js/share/sharedialoglinkshareview.handlebars +++ b/core/js/share/sharedialoglinkshareview.handlebars @@ -17,7 +17,8 @@ {{/if}} {{#each linkShares}} <li data-share-id="{{cid}}"> - <div class="avatar icon-public-white"></div><span class="username" title="{{linkShareLabel}}">{{linkShareLabel}}</span> + <div class="avatar icon-public-white"></div> + <span class="username" title="{{linkShareCreationDate}}">{{linkShareLabel}}</span> <span class="sharingOptionsGroup"> <a href="#" class="clipboard-button icon icon-clippy has-tooltip" data-clipboard-text="{{shareLinkURL}}" title="{{copyLabel}}"></a> diff --git a/core/js/sharedialoglinkshareview.js b/core/js/sharedialoglinkshareview.js index 989c10c2c57..716df70c376 100644 --- a/core/js/sharedialoglinkshareview.js +++ b/core/js/sharedialoglinkshareview.js @@ -832,6 +832,7 @@ newShareTitle: t('core', 'New share link'), copyLabel: t('core', 'Copy link'), showPending: this.showPending === share.id, + linkShareCreationDate: t('core', 'Created on {time}', { time: moment(share.stime * 1000).format('LLLL') }) }) }, diff --git a/core/js/sharetemplates.js b/core/js/sharetemplates.js index 049ee90aa6f..4d827bbe83f 100644 --- a/core/js/sharetemplates.js +++ b/core/js/sharetemplates.js @@ -36,8 +36,8 @@ templates['sharedialoglinkshareview'] = template({"1":function(container,depth0, return " <li data-share-id=\"" + alias4(((helper = (helper = helpers.cid || (depth0 != null ? depth0.cid : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"cid","hash":{},"data":data}) : helper))) - + "\">\n <div class=\"avatar icon-public-white\"></div><span class=\"username\" title=\"" - + alias4(((helper = (helper = helpers.linkShareLabel || (depth0 != null ? depth0.linkShareLabel : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"linkShareLabel","hash":{},"data":data}) : helper))) + + "\">\n <div class=\"avatar icon-public-white\"></div>\n <span class=\"username\" title=\"" + + alias4(((helper = (helper = helpers.linkShareCreationDate || (depth0 != null ? depth0.linkShareCreationDate : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"linkShareCreationDate","hash":{},"data":data}) : helper))) + "\">" + alias4(((helper = (helper = helpers.linkShareLabel || (depth0 != null ? depth0.linkShareLabel : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"linkShareLabel","hash":{},"data":data}) : helper))) + "</span>\n \n <span class=\"sharingOptionsGroup\">\n <a href=\"#\" class=\"clipboard-button icon icon-clippy has-tooltip\" data-clipboard-text=\"" |