2015-07-16 11:57:27 -04:00
|
|
|
.posts.contents
|
|
|
|
.post.show
|
|
|
|
p.title= link_to post.title, [post.subcreddit, post]
|
2015-08-06 15:10:31 -04:00
|
|
|
p.details
|
|
|
|
= "submitted #{distance_of_time_in_words post.created_at, Time.now} ago by "
|
|
|
|
== link_to post.user_username, post.user
|
2015-07-16 11:57:27 -04:00
|
|
|
p.content= post.content
|
|
|
|
ul.links.list-inline
|
|
|
|
li= link_to "#{post.comments_count} comments", subcreddit_post_path(post.subcreddit, post)
|
|
|
|
li= link_to 'share', ''
|
|
|
|
li= link_to 'edit', edit_subcreddit_post_path(post.subcreddit, post)
|
|
|
|
li= link_to 'save', ''
|
|
|
|
li= link_to 'hide', ''
|
|
|
|
li= link_to 'remove', ''
|
|
|
|
li= link_to 'approve', ''
|
|
|
|
li= link_to 'nsfw', ''
|