|
|
|
@ -5,7 +5,8 @@ class ContestsController < ApplicationController
|
|
|
|
|
menu_item :project, :only => :show_project
|
|
|
|
|
menu_item :application, :only => :show_softapplication
|
|
|
|
|
menu_item :attendingcontest, :only => :show_attendingcontest
|
|
|
|
|
before_filter :find_contest, :only => [:show_contest, :show_project, :show_softapplication, :show_attendingcontest, :set_reward_project, :set_reward_softapplication, :create,:destroy,:more,:back,:add,:add_softapplication,:new,:show_results, :set_reward,
|
|
|
|
|
menu_item :contestnotification, :only => :show_notification
|
|
|
|
|
before_filter :find_contest, :only => [:show_contest, :show_project, :show_softapplication, :show_attendingcontest, :show_notification, :set_reward_project, :set_reward_softapplication, :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
|
|
|
|
@ -357,7 +358,13 @@ class ContestsController < ApplicationController
|
|
|
|
|
###end
|
|
|
|
|
|
|
|
|
|
def show_notification
|
|
|
|
|
|
|
|
|
|
@contest = Contest.find_by_id(params[:id])
|
|
|
|
|
respond_to do |format|
|
|
|
|
|
format.html {
|
|
|
|
|
render :layout => 'base_newcontest'
|
|
|
|
|
}
|
|
|
|
|
format.api
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|