修改学生提交作业界面的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 if @bid.reward_type == 3
format.html { format.html {
html_title(l(:label_homework_info)) html_title(l(:label_homework_info))
render :layout => 'base_courses' render :layout => 'base_homework'
} }
elsif @bid.reward_type == 1 elsif @bid.reward_type == 1
format.html { format.html {
@ -1061,7 +1061,6 @@ class BidsController < ApplicationController
if params[:id] if params[:id]
@bid = Bid.find(params[:id], :include => [{:homeworks => :user}]) @bid = Bid.find(params[:id], :include => [{:homeworks => :user}])
@user = @bid.author @user = @bid.author
@course = @bid.courses.first
end end
rescue rescue
render_404 render_404