diff options
Diffstat (limited to 'apps/comments/js/templates')
-rw-r--r-- | apps/comments/js/templates/comment.handlebars | 15 | ||||
-rw-r--r-- | apps/comments/js/templates/edit_comment.handlebars | 16 | ||||
-rw-r--r-- | apps/comments/js/templates/view.handlebars | 6 |
3 files changed, 37 insertions, 0 deletions
diff --git a/apps/comments/js/templates/comment.handlebars b/apps/comments/js/templates/comment.handlebars new file mode 100644 index 00000000000..c1a1091a4e0 --- /dev/null +++ b/apps/comments/js/templates/comment.handlebars @@ -0,0 +1,15 @@ +<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> diff --git a/apps/comments/js/templates/edit_comment.handlebars b/apps/comments/js/templates/edit_comment.handlebars new file mode 100644 index 00000000000..05f89ec598a --- /dev/null +++ b/apps/comments/js/templates/edit_comment.handlebars @@ -0,0 +1,16 @@ +<{{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}}> diff --git a/apps/comments/js/templates/view.handlebars b/apps/comments/js/templates/view.handlebars new file mode 100644 index 00000000000..5f52a42861d --- /dev/null +++ b/apps/comments/js/templates/view.handlebars @@ -0,0 +1,6 @@ +<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>' |