scinote-web/app/views/client_api/teams/team_users.json.jbuilder

14 lines
435 B
Text
Raw Normal View History

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
2017-10-23 21:48:12 +08:00
json.currentRole team_user.role_str
json.teamUserId team_user.id
json.disable team_user.user == current_user
end
end