From ae1250f422126808691a99de45ec1ae0574678da Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Thu, 27 Sep 2018 13:18:26 +0200 Subject: Compile filesummary handlebars Fixes #11030 For https://github.com/orgs/nextcloud/projects/18 This template is now compiled so this no longer has to happen in the browser. Another step towards a stricter CSP. Signed-off-by: Roeland Jago Douma --- apps/files/js/filesummary_template.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 apps/files/js/filesummary_template.js (limited to 'apps/files/js/filesummary_template.js') diff --git a/apps/files/js/filesummary_template.js b/apps/files/js/filesummary_template.js new file mode 100644 index 00000000000..c535c43cae5 --- /dev/null +++ b/apps/files/js/filesummary_template.js @@ -0,0 +1,10 @@ +(function() { + var template = Handlebars.template, templates = OCA.Files.FileSummary.Templates = OCA.Files.FileSummary.Templates || {}; +templates['filesummary'] = template({"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) { + var helper; + + return "\n \n " + + container.escapeExpression(((helper = (helper = helpers.connectorLabel || (depth0 != null ? depth0.connectorLabel : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === "function" ? helper.call(depth0,{"name":"connectorLabel","hash":{},"data":data}) : helper))) + + "\n \n \n \n\n"; +},"useData":true}); +})(); \ No newline at end of file -- cgit v1.2.3