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

19 lines
599 B
Plaintext
Raw Normal View History

2017-08-30 15:29:45 +08:00
json.team_details do
json.id team.id
json.created_at team.created_at
2017-08-30 22:18:21 +08:00
json.created_by "#{team.created_by.full_name} (#{team.created_by.email})"
2017-08-30 15:29:45 +08:00
json.space_taken team.space_taken
json.description team.description
2017-08-30 22:18:21 +08:00
json.users team_users do |team_user|
json.id team_user.user.id
json.email team_user.user.full_name
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.current_role team_user.role_str
json.team_user_id team_user.id
end
2017-08-30 15:29:45 +08:00
end
end