scinote-web/app/views/client_api/teams/team_users.json.jbuilder
2017-10-23 15:48:12 +02:00

13 lines
435 B
Ruby

json.team_users team_users do |team_user|
json.id team_user.user.id
json.name team_user.user.full_name
json.email team_user.user.email
json.role team_user.role_str
json.created_at I18n.l(team_user.created_at, format: :full_date)
json.status team_user.user.active_status_str
json.actions do
json.currentRole team_user.role_str
json.teamUserId team_user.id
json.disable team_user.user == current_user
end
end