<% user_still_in_team = user.teams.include?(team) %> <% popover_html = "" %> <% if user_still_in_team %> <% user_team_assignment = user.user_assignments.find_by(assignable: team) %> <% popover_html = I18n.t('atwho.users.popover_html', role: user_team_assignment.user_role.name.capitalize, team: user_team_assignment.assignable.name, time: I18n.l(user_team_assignment.created_at, format: :full_date)) %> <% end %> <% unless skip_avatar %> avatar <% end %> <%= user.full_name %> <% unless skip_user_status || user_still_in_team %> <%= I18n.t('atwho.res.removed') %> <% end %>