forked from Gitlink/forgeplus
9 lines
300 B
Ruby
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
|