-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle commentReply subs at the template level #6, show loader when s…
…ubscriptions are loading #3
- Loading branch information
Showing
2 changed files
with
19 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,19 @@ | ||
<template name="replies"> | ||
<div class="comment-container {{side}} {{#if side}}{{side}}{{color}}{{/if}}" id="{{id}}-replies"> | ||
<div class="comment-replies clearfix"> | ||
{{> newComment}} | ||
</div> | ||
{{#if Template.subscriptionsReady}} | ||
<div class="comment-replies clearfix"> | ||
{{> newComment}} | ||
</div> | ||
|
||
{{#if hasReplies}} | ||
{{#each replies}} | ||
{{> commentRow}} | ||
{{/each}} | ||
{{#if hasReplies}} | ||
{{#each replies}} | ||
{{> commentRow}} | ||
{{/each}} | ||
{{else}} | ||
<div class="muted">{{_ "no_more"}}</div> | ||
{{/if}} | ||
{{else}} | ||
<div class="muted">{{_ "no_more"}}</div> | ||
<div class="loader">{{_ "loading"}}</div> | ||
{{/if}} | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters