forgeplus/app/views/organizations/teams/index.json.jbuilder

9 lines
300 B
Ruby

json.total_count params[:is_full].present? ? @teams.count : @teams.total_count
json.teams @teams do |team|
if params[:is_full].present?
json.partial! "simple_detail", team: team, organization: @organization
else
json.partial! "detail", team: team, organization: @organization
end
end