|
|
|
@ -2254,6 +2254,21 @@ module ApplicationHelper
|
|
|
|
|
technical_title
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def get_user_roll identity
|
|
|
|
|
technical_title = ""
|
|
|
|
|
case identity.to_s
|
|
|
|
|
when "0"
|
|
|
|
|
technical_title = l(:label_account_identity_teacher)
|
|
|
|
|
when "1"
|
|
|
|
|
technical_title = l(:label_account_identity_student)
|
|
|
|
|
when "2"
|
|
|
|
|
technical_title = l(:label_account_identity_enterprise)
|
|
|
|
|
when "3"
|
|
|
|
|
technical_title = l(:label_account_identity_developer)
|
|
|
|
|
end
|
|
|
|
|
technical_title
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def ie8?
|
|
|
|
|
request.env["HTTP_USER_AGENT"] =~ /MSIE 8.0/
|
|
|
|
|