rosa-build/app/views/api/v1/maintainers/index.json.jbuilder

16 lines
357 B
Plaintext
Raw Normal View History

json.maintainers @maintainers do |maintainer|
json.project do
json.partial! 'api/v1/projects/project', :project => maintainer.project
2012-11-26 11:32:23 +00:00
end
json.package do
json.partial! 'package', :package => maintainer
2012-11-26 11:32:23 +00:00
end
json.maintainer do
2012-11-26 11:32:23 +00:00
if user = maintainer.try(:assignee)
json.partial! 'maintainer', :maintainer => user
2012-11-26 11:32:23 +00:00
end
end
end