rosa-build/app/views/api/v1/projects/show.json.jbuilder

18 lines
892 B
Plaintext
Raw Normal View History

json.project do |json|
json.partial! 'project', :project => @project, :json => json
2013-02-07 13:50:55 +00:00
json.(@project, :visibility, :description, :ancestry, :has_issues, :has_wiki, :default_branch, :is_package, :average_build_time, :publish_i686_into_x86_64)
json.created_at @project.created_at.to_i
json.updated_at @project.updated_at.to_i
json.partial! 'api/v1/shared/owner', :owner => @project.owner
json.maintainer do |json_maintainer|
2012-10-17 13:46:19 +01:00
json.partial! 'api/v1/shared/member', :member => @project.maintainer, :tag => json_maintainer
end
2012-10-08 13:47:02 +01:00
json.repositories @project.repositories do |json_repos, repo|
json_repos.(repo, :id, :name)
json_repos.url api_v1_repository_path(repo.name, :format => :json)
json_repos.platform do |json_platform|
json_platform.(repo.platform, :id, :name)
json_platform.url api_v1_platform_path(repo.platform, :format => :json)
end
end
end