课程、竞赛主页跳转到个人主页

This commit is contained in:
sw 2015-08-29 19:03:36 +08:00
parent c416a312cf
commit 8be7509b33
1 changed files with 6 additions and 0 deletions

View File

@ -98,6 +98,9 @@ class WelcomeController < ApplicationController
end
def course
redirect_to signin_path
return
@course_page = FirstPage.find_by_page_type('course')
@school_id = params[:school_id] || User.current.user_extensions.school.try(:id) || 117
@logoLink ||= logolink()
@ -140,6 +143,9 @@ class WelcomeController < ApplicationController
def contest
redirect_to signin_path
return
@contest_page = FirstPage.find_by_page_type('contest')
@contest_notifications = Contestnotification.order("created_at desc").limit(5)
end