diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-10-01 20:07:09 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-10-04 09:53:44 +0200 |
commit | fca9987a6ad890d3b3e7854fae157f51fac54ed8 (patch) | |
tree | 9894830855b217bd165289506437fd6e4fbdef45 /apps/files/js/mainfileinfodetailview.js | |
parent | 6f940a9b02bca9e388640c45b928ebedb6eca153 (diff) | |
download | nextcloud-server-fca9987a6ad890d3b3e7854fae157f51fac54ed8.tar.gz nextcloud-server-fca9987a6ad890d3b3e7854fae157f51fac54ed8.zip |
Move mainfileinfodetailsview to commpiled handlebars
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/files/js/mainfileinfodetailview.js')
-rw-r--r-- | apps/files/js/mainfileinfodetailview.js | 28 |
1 files changed, 1 insertions, 27 deletions
diff --git a/apps/files/js/mainfileinfodetailview.js b/apps/files/js/mainfileinfodetailview.js index 626ab86ded3..82860780d32 100644 --- a/apps/files/js/mainfileinfodetailview.js +++ b/apps/files/js/mainfileinfodetailview.js @@ -9,29 +9,6 @@ */ (function() { - var TEMPLATE = - '<div class="thumbnailContainer"><a href="#" class="thumbnail action-default"><div class="stretcher"/></a></div>' + - '<div class="file-details-container">' + - '<div class="fileName">' + - '<h3 title="{{name}}" class="ellipsis">{{name}}</h3>' + - '<a class="permalink" href="{{permalink}}" title="{{permalinkTitle}}" data-clipboard-text="{{permalink}}">' + - '<span class="icon icon-clippy"></span>' + - '<span class="hidden-visually">{{permalinkTitle}}</span>' + - '</a>' + - '</div>' + - ' <div class="file-details ellipsis">' + - ' {{#if hasFavoriteAction}}' + - ' <a href="#" class="action action-favorite favorite permanent">' + - ' <span class="icon {{starClass}}" title="{{starAltText}}"></span>' + - ' </a>' + - ' {{/if}}' + - ' {{#if hasSize}}<span class="size" title="{{altSize}}">{{size}}</span>, {{/if}}<span class="date live-relative-timestamp" data-timestamp="{{timestamp}}" title="{{altDate}}">{{date}}</span>' + - ' </div>' + - '</div>' + - '<div class="hidden permalink-field">' + - '<input type="text" value="{{permalink}}" placeholder="{{permalinkTitle}}" readonly="readonly"/>' + - '</div>'; - /** * @class OCA.Files.MainFileInfoDetailView * @classdesc @@ -71,10 +48,7 @@ }, template: function(data) { - if (!this._template) { - this._template = Handlebars.compile(TEMPLATE); - } - return this._template(data); + return OCA.Files.Templates['mainfileinfodetailsview'](data); }, initialize: function(options) { |