Additionally:
* Rename methods and variables related to the parent/child previews for
consistency.
* Split off siblings into a separate post set.
* Increase limit of children/siblings displayed to max of 200.
This commit is contained in:
Toks
2013-04-29 16:56:54 -04:00
parent aee7bbee0f
commit 4775535c11
4 changed files with 30 additions and 20 deletions

View File

@@ -22,8 +22,9 @@ class PostsController < ApplicationController
@post = Post.find(params[:id])
@post_flag = PostFlag.new(:post_id => @post.id)
@post_appeal = PostAppeal.new(:post_id => @post.id)
@parent_post_set = PostSets::Post.new("parent:#{@post.id} -id:#{@post.id}")
@child_post_set = PostSets::Post.new("id:#{@post.parent_id} status:any")
@children_post_set = PostSets::Post.new("parent:#{@post.id} -id:#{@post.id}", 1, 200)
@parent_post_set = PostSets::Post.new("id:#{@post.parent_id} status:any")
@siblings_post_set = PostSets::Post.new("parent:#{@post.parent_id} -id:#{@post.parent_id}", 1, 200)
respond_with(@post)
end