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

9 lines
362 B
Plaintext
Raw Normal View History

2013-07-11 14:03:02 +01:00
json.refs_list @refs do |json_grit, grit|
json_grit.ref grit.name
json_grit.object do |json_object|
json_object.type (grit.class.name =~ /Tag/ ? 'tag' : 'commit')
json_object.sha grit.commit.id
2013-07-11 14:03:02 +01:00
json_object.authored_date grit.commit.authored_date.strftime('%d.%m.%Y')
end
end
json.url refs_list_api_v1_project_path(@project.id, :format => :json)