diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2021-03-17 11:42:06 +0100 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2021-03-17 14:45:29 +0100 |
commit | 87d39375d80b38295ae3c73fb56f33a4609a0803 (patch) | |
tree | 1e6c7f733ae215588653230b2f9c0d58ee918a83 /apps/comments/src | |
parent | 043b5a9de44542522541c66c8f37b1109338ae9f (diff) | |
download | nextcloud-server-87d39375d80b38295ae3c73fb56f33a4609a0803.tar.gz nextcloud-server-87d39375d80b38295ae3c73fb56f33a4609a0803.zip |
Fix comments filesplugin
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/comments/src')
-rw-r--r-- | apps/comments/src/comments.js | 1 | ||||
-rw-r--r-- | apps/comments/src/templates.js | 17 |
2 files changed, 18 insertions, 0 deletions
diff --git a/apps/comments/src/comments.js b/apps/comments/src/comments.js index 75bb97138c3..3d7f52f4e74 100644 --- a/apps/comments/src/comments.js +++ b/apps/comments/src/comments.js @@ -1,4 +1,5 @@ import './app' +import './templates' import './filesplugin' import './activitytabviewplugin' diff --git a/apps/comments/src/templates.js b/apps/comments/src/templates.js new file mode 100644 index 00000000000..6064854f084 --- /dev/null +++ b/apps/comments/src/templates.js @@ -0,0 +1,17 @@ +(function() { + var template = Handlebars.template, templates = OCA.Comments.Templates = OCA.Comments.Templates || {}; +templates['filesplugin'] = template({"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) { + var helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) { + if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { + return parent[propertyName]; + } + return undefined + }; + + return "<a class=\"action action-comment permanent\" title=\"" + + alias4(((helper = (helper = lookupProperty(helpers,"countMessage") || (depth0 != null ? lookupProperty(depth0,"countMessage") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"countMessage","hash":{},"data":data,"loc":{"start":{"line":1,"column":50},"end":{"line":1,"column":66}}}) : helper))) + + "\" href=\"#\">\n <img class=\"svg\" src=\"" + + alias4(((helper = (helper = lookupProperty(helpers,"iconUrl") || (depth0 != null ? lookupProperty(depth0,"iconUrl") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"iconUrl","hash":{},"data":data,"loc":{"start":{"line":2,"column":23},"end":{"line":2,"column":34}}}) : helper))) + + "\"/>\n</a>\n"; +},"useData":true}); +})();
\ No newline at end of file |