修改学生提交作业界面的layout

This commit is contained in:
sw 2015-03-24 14:11:27 +08:00
parent c4cd61c71b
commit f5059147d2
1 changed files with 1 additions and 2 deletions

View File

@ -524,7 +524,7 @@ class BidsController < ApplicationController
if @bid.reward_type == 3
format.html {
html_title(l(:label_homework_info))
render :layout => 'base_courses'
render :layout => 'base_homework'
}
elsif @bid.reward_type == 1
format.html {
@ -1061,7 +1061,6 @@ class BidsController < ApplicationController
if params[:id]
@bid = Bid.find(params[:id], :include => [{:homeworks => :user}])
@user = @bid.author
@course = @bid.courses.first
end
rescue
render_404