mirror of
https://github.com/vale981/Vulcan
synced 2025-03-07 02:21:43 -05:00
31 lines
693 B
HTML
31 lines
693 B
HTML
<template name="selected_post">
|
|
{{#if show}}
|
|
<div class="selected-post grid">
|
|
{{#with post}}
|
|
{{> post}}
|
|
{{#if body}}
|
|
<div class="post-message">{{body}}</div>
|
|
{{/if}}
|
|
{{/with}}
|
|
{{#if show_comment_form}}
|
|
<div class="comment-new">
|
|
<div class="comment-field">
|
|
<textarea id="comment" rows="3" autofocus="autofocus"></textarea>
|
|
</div>
|
|
<div class="comment-submit">
|
|
<input type="submit" value="Add Comment" />
|
|
</div>
|
|
</div>
|
|
{{/if}}
|
|
{{#if has_comments}}
|
|
<ul>
|
|
{{#each child_comments}}
|
|
{{> comment}}
|
|
{{/each}}
|
|
</ul>
|
|
{{else}}
|
|
<p>No comments.</p>
|
|
{{/if}}
|
|
</div>
|
|
{{/if}}
|
|
</template>
|