diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2018-11-29 17:02:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-29 17:02:14 +0100 |
commit | f77e519137d8b934ce599548a0ce3bdd81b826a2 (patch) | |
tree | d0559208eba958fd12a2ed8b6ff3bc4dc03f0af7 /core | |
parent | 3242c602f663d390aaa85170696c5112e9c615bf (diff) | |
parent | f735c65db269ae86b1797664d639d9e38b368f49 (diff) | |
download | nextcloud-server-f77e519137d8b934ce599548a0ce3bdd81b826a2.tar.gz nextcloud-server-f77e519137d8b934ce599548a0ce3bdd81b826a2.zip |
Merge pull request #12674 from nextcloud/date-title-to-linkshare
Date title to linkshare
Diffstat (limited to 'core')
-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=\"" |