Permalink
Browse files

Topic list now 30 items in per page.

  • Loading branch information...
1 parent 93107a3 commit 09352e05f2c5e80a715d995785b1a134a252d173 @huacnlee huacnlee committed Apr 14, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 app/controllers/topics_controller.rb
@@ -22,7 +22,7 @@ def feed
def node
@node = Node.find(params[:id])
- @topics = @node.topics.last_actived.fields_for_list.includes(:user).paginate(:page => params[:page],:per_page => 50)
+ @topics = @node.topics.last_actived.fields_for_list.includes(:user).paginate(:page => params[:page],:per_page => 30)
set_seo_meta("#{@node.name} » #{t("menu.topics")}","#{Setting.app_name}#{t("menu.topics")}#{@node.name}",@node.summary)
drop_breadcrumb("#{@node.name}")
render :action => "index" #, :stream => true
@@ -37,7 +37,7 @@ def node_feed
def recent
# TODO: 需要 includes :node,:user, :last_reply_user,但目前用了 paginate 似乎会使得 includes 没有效果
- @topics = Topic.recent.fields_for_list.includes(:user).paginate(:page => params[:page], :per_page => 50)
+ @topics = Topic.recent.fields_for_list.includes(:user).paginate(:page => params[:page], :per_page => 30)
drop_breadcrumb(t("topics.topic_list"))
render :action => "index" #, :stream => true
end

0 comments on commit 09352e0

Please sign in to comment.