summaryrefslogtreecommitdiffstats
path: root/core/js/sharedialogresharerinfoview.js
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-10-01 20:46:29 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2018-10-04 09:53:45 +0200
commitb0fd31496b5edb95264c0ea3139692b5969f40e0 (patch)
tree77f0034a4759edccf2c3993ce4cefa12e25b077e /core/js/sharedialogresharerinfoview.js
parentb10cddebe583dff888d844c550f607d52b496d49 (diff)
downloadnextcloud-server-b0fd31496b5edb95264c0ea3139692b5969f40e0.tar.gz
nextcloud-server-b0fd31496b5edb95264c0ea3139692b5969f40e0.zip
Move OC.Share to compiled handlebars
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'core/js/sharedialogresharerinfoview.js')
-rw-r--r--core/js/sharedialogresharerinfoview.js13
1 files changed, 1 insertions, 12 deletions
diff --git a/core/js/sharedialogresharerinfoview.js b/core/js/sharedialogresharerinfoview.js
index b2d5a093990..f55f2bcc527 100644
--- a/core/js/sharedialogresharerinfoview.js
+++ b/core/js/sharedialogresharerinfoview.js
@@ -15,14 +15,6 @@
OC.Share = {};
}
- var TEMPLATE =
- '<span class="reshare">' +
- ' <div class="avatar" data-userName="{{reshareOwner}}"></div>' +
- ' {{sharedByText}}' +
- '</span>' +
- '{{#if hasShareNote}}<div class="share-note">{{shareNote}}</div>{{/if}}'
- ;
-
/**
* @class OCA.Share.ShareDialogView
* @member {OC.Share.ShareItemModel} model
@@ -159,10 +151,7 @@
* @private
*/
template: function () {
- if (!this._template) {
- this._template = Handlebars.compile(TEMPLATE);
- }
- return this._template;
+ return OC.Share.Templates['sharedialogresharerinfoview'];
}
});