diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 7f93345b4..b36a6491e 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -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/ diff --git a/app/views/layouts/new_base_user.html.erb b/app/views/layouts/new_base_user.html.erb index 32813b58d..6fe2a4653 100644 --- a/app/views/layouts/new_base_user.html.erb +++ b/app/views/layouts/new_base_user.html.erb @@ -50,9 +50,11 @@ <% end %>
-- <%= get_technical_title @user %> -
+ <% if @user.user_extensions && @user.user_extensions.identity %> ++ <%= get_user_roll @user.user_extensions.identity %> +
+ <% end%>