2015-08-06 16:31:08 -04:00
|
|
|
- content_for(:title, link_to(@subcreddit.name, @subcreddit))
|
2015-07-16 11:57:27 -04:00
|
|
|
== render 'posts/post', post: @post
|
|
|
|
.alert.alert-info.in-page
|
|
|
|
p you are viewing a single comment's thread.
|
|
|
|
p #{link_to 'view the rest of the comments', subcreddit_post_path(@subcreddit, @post)} →
|
2015-12-14 13:28:39 -05:00
|
|
|
- if policy(:comment).new?
|
|
|
|
= "Commenting as: #{current_user.username}"
|
|
|
|
== render 'comments/form', subcreddit: @subcreddit, post: @post, comment: @post.comments.build, parent: @comment
|
2015-07-16 11:57:27 -04:00
|
|
|
.comments.contents
|
|
|
|
== nested_comments(@comments)
|