解决冲突

This commit is contained in:
cxt 2015-10-15 16:28:03 +08:00
parent caa278d9f5
commit 0f0351b343
1 changed files with 8 additions and 1 deletions

View File

@ -148,7 +148,10 @@ class BoardsController < ApplicationController
@message = Message.new(:board => @board)
#modify by nwb
respond_to do |format|
format.js
format.html {
if @project
render :action => 'show', :layout => 'base_projects'
elsif @course
@params=params
@ -157,6 +160,10 @@ class BoardsController < ApplicationController
}
format.atom {
@messages = @board.messages.
reorder('created_on DESC').
includes(:author, :board).
limit(Setting.feeds_limit.to_i).
all
if @project
render_feed(@messages, :title => "#{@project}: #{@board}")
elsif @course