|
|
|
@ -4,7 +4,8 @@ class ContestsController < ApplicationController
|
|
|
|
|
menu_item :respond
|
|
|
|
|
menu_item :project, :only => :show_project
|
|
|
|
|
menu_item :application, :only => :show_softapplication
|
|
|
|
|
before_filter :find_contest, :only => [:show_contest, :show_project, :show_softapplication, :create,:destroy,:more,:back,:add,:add_softapplication,:new,:show_results, :set_reward,
|
|
|
|
|
menu_item :attendingcontest, :only => :show_attendingcontest
|
|
|
|
|
before_filter :find_contest, :only => [:show_contest, :show_project, :show_softapplication, :show_attendingcontest, :create,:destroy,:more,:back,:add,:add_softapplication,:new,:show_results, :set_reward,
|
|
|
|
|
:show_contest_project, :show_contest_user, :join_in_contest, :unjoin_in_contest, :new_join,:show_participator, :settings]
|
|
|
|
|
|
|
|
|
|
# added by fq
|
|
|
|
@ -288,6 +289,13 @@ class ContestsController < ApplicationController
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
###我要参赛
|
|
|
|
|
def show_attendingcontest
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
###end
|
|
|
|
|
###添加已创建的参赛项目
|
|
|
|
|
def add
|
|
|
|
|
project = Project.find(params[:contest])
|
|
|
|
|