comments.html 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <template name="comments">
  2. <div class="panel panel-default">
  3. <div class="panel-heading">
  4. Comments
  5. </div>
  6. <div class="panel-body list-group">
  7. <div class="list-group-item row">
  8. <div class="col-md-2 list-group-item-heading">Poster</div>
  9. <div class="col-md-10 list-group-item-heading">Comment</div>
  10. </div>
  11. {{#each comments }}
  12. <div class="list-group-item list-group-item-text row">
  13. <div class="col-md-2">{{ poster.name }}</div>
  14. <div class="col-md-10">{{ contents }}</div>
  15. </div>
  16. {{/each}}
  17. </div>
  18. <div class="panel-footer">
  19. {{#if isLoggedIn }}
  20. <form class="js-comment-submit">
  21. <div class="input-group">
  22. <input type="text" id="comment-input" class="form-control" placeholder="Remember to stay on-topic." />
  23. <span class="input-group-btn">
  24. <button type="submit" id="comment-submit" class="btn btn-primary">Submit comment</button>
  25. </span>
  26. </div>
  27. </form>
  28. {{else}}
  29. <span class="badge btn-danger">
  30. You need to be logged in to post comments.
  31. </span>
  32. {{/if}}
  33. </div>
  34. </div>
  35. </template>