Skip to content
Snippets Groups Projects
Unverified Commit d281f262 authored by Roeland Jago Douma's avatar Roeland Jago Douma
Browse files

Move Comments to compiled handlebars

parent 18795315
No related branches found
No related tags found
No related merge requests found
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
[ [
"app.js", "app.js",
"templates.js",
"commentmodel.js", "commentmodel.js",
"commentcollection.js", "commentcollection.js",
"commentsummarymodel.js", "commentsummarymodel.js",
......
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
<li class="comment{{#if isUnread}} unread{{/if}}{{#if isLong}} collapsed{{/if}}" data-id="{{id}}">
<div class="authorRow">
<div class="avatar{{#if isUserAuthor}} currentUser{{/if}}" {{#if actorId}}data-username="{{actorId}}"{{/if}}> </div>
<div class="author{{#if isUserAuthor}} currentUser{{/if}}">{{actorDisplayName}}</div>
{{#if isUserAuthor}}
<a href="#" class="action more icon icon-more has-tooltip"></a>
<div class="deleteLoading icon-loading-small hidden"></div>
{{/if}}
<div class="date has-tooltip live-relative-timestamp" data-timestamp="{{timestamp}}" title="{{altDate}}">{{date}}</div>
</div>
<div class="message">{{{formattedMessage}}}</div>
{{#if isLong}}
<div class="message-overlay"></div>
{{/if}}
</li>
<{{tag}} class="newCommentRow comment" data-id="{{id}}">
<div class="authorRow">
<div class="avatar currentUser" data-username="{{actorId}}"></div>
<div class="author currentUser">{{actorDisplayName}}</div>
{{#if isEditMode}}
<div class="action-container">
<a href="#" class="action cancel icon icon-close has-tooltip" title="{{cancelText}}"></a>
</div>
{{/if}}
</div>
<form class="newCommentForm">
<div contentEditable="true" class="message" data-placeholder="{{newMessagePlaceholder}}">{{message}}</div>
<input class="submit icon-confirm has-tooltip" type="submit" value="" title="{{submitText}}"/>
<div class="submitLoading icon-loading-small hidden"></div>'+
</form>
'</{{tag}}>
<ul class="comments">
</ul>
<div class="emptycontent hidden"><div class="icon-comment"></div>
<p>{{emptyResultLabel}}</p></div>
<input type="button" class="showMore hidden" value="{{moreLabel}}" name="show-more" id="show-more" />
<div class="loading hidden" style="height: 50px"></div>'
...@@ -13,6 +13,10 @@ handlebars -n OC.ContactsMenu.Templates core/js/contactsmenu -f core/js/contacts ...@@ -13,6 +13,10 @@ handlebars -n OC.ContactsMenu.Templates core/js/contactsmenu -f core/js/contacts
# Files app # Files app
handlebars -n OCA.Files.Templates apps/files/js/templates -f apps/files/js/templates.js handlebars -n OCA.Files.Templates apps/files/js/templates -f apps/files/js/templates.js
# Comments app
handlebars -n OCA.Comments.Templates apps/comments/js/templates -f apps/comments/js/templates.js
if [[ $(git diff --name-only) ]]; then if [[ $(git diff --name-only) ]]; then
echo "Please submit your compiled handlebars templates" echo "Please submit your compiled handlebars templates"
echo echo
......
...@@ -87,6 +87,7 @@ module.exports = function(config) { ...@@ -87,6 +87,7 @@ module.exports = function(config) {
srcFiles: [ srcFiles: [
// need to enforce loading order... // need to enforce loading order...
'apps/comments/js/app.js', 'apps/comments/js/app.js',
'apps/comments/js/templates.js',
'apps/comments/js/vendor/Caret.js/dist/jquery.caret.min.js', 'apps/comments/js/vendor/Caret.js/dist/jquery.caret.min.js',
'apps/comments/js/vendor/At.js/dist/js/jquery.atwho.min.js', 'apps/comments/js/vendor/At.js/dist/js/jquery.atwho.min.js',
'apps/comments/js/commentmodel.js', 'apps/comments/js/commentmodel.js',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment