|
|
|
@ -1133,7 +1133,7 @@ class CoursesController < ApplicationController
|
|
|
|
|
|
|
|
|
|
def top_banner
|
|
|
|
|
@user = current_user
|
|
|
|
|
@switch_student = Course::BUSINESS < @user_course_identity < Course::STUDENT
|
|
|
|
|
@switch_student = Course::BUSINESS < @user_course_identity && @user_course_identity < Course::STUDENT
|
|
|
|
|
@is_student = @user_course_identity == Course::STUDENT
|
|
|
|
|
@course.increment!(:visits)
|
|
|
|
|
end
|
|
|
|
|