diff --git a/app/controllers/boards_controller.rb b/app/controllers/boards_controller.rb index 47f5c0f07..2262de68e 100644 --- a/app/controllers/boards_controller.rb +++ b/app/controllers/boards_controller.rb @@ -16,6 +16,7 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. class BoardsController < ApplicationController + layout 'base_projects'#by young default_search_scope :messages before_filter :find_project_by_project_id, :find_board_if_available, :authorize accept_rss_auth :index, :show diff --git a/app/controllers/messages_controller.rb b/app/controllers/messages_controller.rb index ad9107639..b67deb89b 100644 --- a/app/controllers/messages_controller.rb +++ b/app/controllers/messages_controller.rb @@ -49,7 +49,7 @@ class MessagesController < ApplicationController all @reply = Message.new(:subject => "RE: #{@message.subject}") - render :action => "show", :layout => false if request.xhr? + render :action => "show", :layout => "base_projects"#by young end # Create a new topic diff --git a/app/controllers/previews_controller.rb b/app/controllers/previews_controller.rb index d19a7fcd7..0083116d2 100644 --- a/app/controllers/previews_controller.rb +++ b/app/controllers/previews_controller.rb @@ -46,7 +46,7 @@ class PreviewsController < ApplicationController def find_project project_id = (params[:issue] && params[:issue][:project_id]) || params[:project_id] @project = Project.find(project_id) - rescue ActiveRecord::RecordNotFound + rescue ActiveRecord::RecordNotFound render_404 end diff --git a/app/views/avatar/_avatar_form.html.erb b/app/views/avatar/_avatar_form.html.erb index c8d92b308..eaa7c08ba 100644 --- a/app/views/avatar/_avatar_form.html.erb +++ b/app/views/avatar/_avatar_form.html.erb @@ -1,5 +1,5 @@