|
|
@ -8,7 +8,7 @@ class BidsController < ApplicationController
|
|
|
|
menu_item :homework_statistics, :only => :homework_statistics
|
|
|
|
menu_item :homework_statistics, :only => :homework_statistics
|
|
|
|
#Ended by young
|
|
|
|
#Ended by young
|
|
|
|
before_filter :find_bid, :only => [:show, :show_project, :create,:destroy,:more,:back,:add,:new,:show_results,:set_reward, :add_homework, :fork, :create_fork,
|
|
|
|
before_filter :find_bid, :only => [:show, :show_project, :create,:destroy,:more,:back,:add,:new,:show_results,:set_reward, :add_homework, :fork, :create_fork,
|
|
|
|
:show_course, :show_bid_project, :show_bid_user, :join_in_contest, :unjoin_in_contest, :new_join]
|
|
|
|
:show_course, :show_bid_project, :show_bid_user, :join_in_contest, :unjoin_in_contest, :new_join,:show_participator]
|
|
|
|
# added by fq
|
|
|
|
# added by fq
|
|
|
|
before_filter :require_login, :only => [:join_in_contest, :unjoin_in_contest]
|
|
|
|
before_filter :require_login, :only => [:join_in_contest, :unjoin_in_contest]
|
|
|
|
# end
|
|
|
|
# end
|
|
|
@ -247,6 +247,13 @@ class BidsController < ApplicationController
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# added by bai
|
|
|
|
|
|
|
|
def show_participator
|
|
|
|
|
|
|
|
render :layout => 'base_contest'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
#end
|
|
|
|
|
|
|
|
|
|
|
|
def show_course
|
|
|
|
def show_course
|
|
|
|
bids = Bid.where('parent_id = ?', @bid.id)
|
|
|
|
bids = Bid.where('parent_id = ?', @bid.id)
|
|
|
|