|
@@ -0,0 +1,37 @@
|
|
|
+<template name="comments">
|
|
|
+ <div class="panel panel-default">
|
|
|
+ <div class="panel-heading">
|
|
|
+ Comments
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="panel-body list-group">
|
|
|
+ <div class="list-group-item row">
|
|
|
+ <div class="col-md-2 list-group-item-heading">Poster</div>
|
|
|
+ <div class="col-md-10 list-group-item-heading">Comment</div>
|
|
|
+ </div>
|
|
|
+ {{#each comments }}
|
|
|
+ <div class="list-group-item list-group-item-text row">
|
|
|
+ <div class="col-md-2">{{ poster.name }}</div>
|
|
|
+ <div class="col-md-10">{{ contents }}</div>
|
|
|
+ </div>
|
|
|
+ {{/each}}
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="panel-footer">
|
|
|
+ {{#if isLoggedIn }}
|
|
|
+ <form class="js-comment-submit">
|
|
|
+ <div class="input-group">
|
|
|
+ <input type="text" id="comment-input" class="form-control" placeholder="Remember to stay on-topic." />
|
|
|
+ <span class="input-group-btn">
|
|
|
+ <button type="submit" id="comment-submit" class="btn btn-primary">Submit comment</button>
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ {{else}}
|
|
|
+ <span class="badge btn-danger">
|
|
|
+ You need to be logged in to post comments.
|
|
|
+ </span>
|
|
|
+ {{/if}}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</template>
|