diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 10835b8bc..2c55a311e 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -140,7 +140,7 @@ module ApplicationHelper end # Generate smart annotation link for one user object - def popover_for_user_name(user, team = nil) + def popover_for_user_name(user, team = nil, skip_user_status = false) user_still_in_team = user.teams.include?(team) user_description = %(
@@ -166,7 +166,10 @@ module ApplicationHelper end user_name = user.full_name - user_name << ' ' + I18n.t('atwho.res.removed') if !user_still_in_team + # binding.pry + unless skip_user_status || user_still_in_team + user_name << " #{I18n.t('atwho.res.removed')}" + end raw("