diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index e55320eb3..86c30cadc 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -78,14 +78,14 @@ module ApplicationHelper user.nil? ? mail : user.try(:show_name) end - def link_to_user_mail(mail, options={}) + def link_to_user_mail(mail, css_class) user = User.find_by_mail(mail) user = user.nil? ? mail : user if user.is_a?(User) name = user.show_name - link_to name, {:controller=> 'users', :action => 'show', id: user.id}, :class => user.css_classes + link_to name, {:controller=> 'users', :action => 'show', id: user.id}, :class => css_class, :target => "_blank" else - h(user.to_s) + "#{h(user.to_s)}".html_safe end end