diff options
author | Morris Jobke <hey@morrisjobke.de> | 2016-10-05 20:35:46 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2016-10-10 12:53:14 +0200 |
commit | 2d507c41446038a0f9e37ff2e9025fd7e7e0fbb3 (patch) | |
tree | d30f868b0765e9e84cc0f623657a70f99326fa0b /core | |
parent | 8d1e6eb9b21359878b5be3aa4c69f77e0cf5abfe (diff) | |
download | nextcloud-server-2d507c41446038a0f9e37ff2e9025fd7e7e0fbb3.tar.gz nextcloud-server-2d507c41446038a0f9e37ff2e9025fd7e7e0fbb3.zip |
align layout of other link shares
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'core')
-rw-r--r-- | core/js/sharedialogshareelistview.js | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/core/js/sharedialogshareelistview.js b/core/js/sharedialogshareelistview.js index caeb082163f..ee51f1d9e3d 100644 --- a/core/js/sharedialogshareelistview.js +++ b/core/js/sharedialogshareelistview.js @@ -82,10 +82,15 @@ '</li>' + '{{/each}}' + '{{#each linkReshares}}' + - '<li data-share-id="{{shareId}}" data-share-type="{{shareType}}">' + - '<span class="icon icon-public"></span>' + - '<span class="has-tooltip username" title="{{shareInitiator}}">{{shareInitiatorDisplayName}}</span>' + - '<a href="#" class="unshare"><span class="icon-loading-small hidden"></span><span class="icon icon-delete"></span><span class="hidden-visually">{{unshareLabel}}</span></a>' + + '<span data-share-id="{{shareId}}" data-share-type="{{shareType}}">' + + '{{#if avatarEnabled}}' + + '<div class="avatar" data-username="{{shareInitiator}}"></div>' + + '{{/if}}' + + '<span class="has-tooltip username" title="{{shareInitiator}}">' + t('core', '{{shareInitiatorDisplayName}} shared via link') + '</span>' + + + '<span class="sharingOptionsGroup">' + + '<a href="#" class="unshare"><span class="icon-loading-small hidden"></span><span class="icon icon-delete"></span><span class="hidden-visually">{{unshareLabel}}</span></a>' + + '</span>' + '</li>' + '{{/each}}' + '</ul>' @@ -216,6 +221,7 @@ getLinkReshares: function() { var universal = { unshareLabel: t('core', 'Unshare'), + avatarEnabled: this.configModel.areAvatarsEnabled(), }; if(!this.model.hasUserShares()) { |