Skip to content

Commit

Permalink
關掉 streaming 功能,以免 debug 困難
Browse files Browse the repository at this point in the history
  • Loading branch information
xdite authored and huacnlee committed Dec 1, 2011
1 parent f4ca0d8 commit 9ef4566
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/controllers/topics_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def index
@topics = Topic.last_actived.limit(15).includes(:node,:user, :last_reply_user)
set_seo_meta("","#{Setting.app_name}#{t("menu.topics")}")
drop_breadcrumb(t("topics.hot_topic"))
render :stream => true
#render :stream => true
end

def feed
Expand All @@ -25,7 +25,7 @@ def node
@topics = @node.topics.last_actived.paginate(:page => params[:page],:per_page => 50)
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
render :action => "index" #, :stream => true
end

def node_feed
Expand All @@ -39,7 +39,7 @@ def recent
# TODO: 需要 includes :node,:user, :last_reply_user,但目前用了 paginate 似乎会使得 includes 没有效果
@topics = Topic.recent.paginate(:page => params[:page], :per_page => 50)
drop_breadcrumb(t("topics.topic_list"))
render :action => "index", :stream => true
render :action => "index" #, :stream => true
end

def search
Expand All @@ -48,7 +48,7 @@ def search
@topics = Topic.where(:_id.in => ids).limit(50).includes(:node,:user, :last_reply_user)
set_seo_meta("#{t("common.search")}#{params[:s]} » #{t("menu.topics")}")
drop_breadcrumb("#{t("common.search")} #{params[:key]}")
render :action => "index", :stream => true
render :action => "index" #, :stream => true
end

def show
Expand All @@ -63,7 +63,7 @@ def show
set_seo_meta("#{@topic.title} » #{t("menu.topics")}")
drop_breadcrumb("#{@node.name}", node_topics_path(@node.id))
drop_breadcrumb t("topics.read_topic")
render :stream => true
# render :stream => true
end

def new
Expand Down

0 comments on commit 9ef4566

Please sign in to comment.