修改学生提交作业界面的layout
This commit is contained in:
parent
c4cd61c71b
commit
f5059147d2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue