课程、竞赛主页跳转到个人主页
This commit is contained in:
parent
c416a312cf
commit
8be7509b33
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue