|
|
|
@ -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
|
|
|
|
|