creddit/app/views/posts/show.html.slim

11 lines
402 B
Text
Raw Normal View History

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 'post', post: @post
- if @post.comments?
.title= "all #{@post.comments_count} comments"
- else
.title= "no comments (yet)"
= "Commenting as: #{current_user.username}"
== render 'comments/form', subcreddit: @subcreddit, post: @post, comment: @post.comments.build, parent: nil
.comments.contents
== nested_comments(@comments)