2015-07-13 02:14:35 -04:00
|
|
|
- if @subcreddit.closed?
|
|
|
|
= "Board has been closed"
|
2015-07-14 16:29:22 -04:00
|
|
|
- else
|
2015-07-15 00:26:23 -04:00
|
|
|
.posts
|
|
|
|
ul
|
|
|
|
- @subcreddit.posts.order('created_at DESC').each_with_index do |post, rank|
|
|
|
|
li
|
|
|
|
.post
|
|
|
|
p.title= link_to post.title, [@subcreddit, post]
|
|
|
|
p.details= "submitted #{distance_of_time_in_words post.created_at, Time.now} ago by #{post.user.username}"
|
|
|
|
ul.links.list-inline
|
|
|
|
li= link_to 'XXX comments', ''
|
|
|
|
li= link_to 'share', ''
|