diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-11-26 18:37:58 +0100 |
---|---|---|
committer | Backportbot <backportbot-noreply@rullzer.com> | 2018-11-29 16:03:12 +0000 |
commit | 6893b2fe0d9d8715dab5f0748d514fc1c6bfb259 (patch) | |
tree | 44d8cf81c6bc40c9e46aebd2db9f3272055c83b8 | |
parent | ea310cbfdfd05dbb42671d5acacdc303508c1e34 (diff) | |
download | nextcloud-server-6893b2fe0d9d8715dab5f0748d514fc1c6bfb259.tar.gz nextcloud-server-6893b2fe0d9d8715dab5f0748d514fc1c6bfb259.zip |
Better identification of the public link shares
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
-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=\"" |