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

12 lines
377 B
Plaintext
Raw Normal View History

json.issues @issues do |issue|
2014-01-21 04:51:49 +00:00
json.partial! 'issue', issue: issue
2013-04-12 17:52:56 +01:00
json.issue issue.body
2014-01-21 04:51:49 +00:00
json.partial! 'api/v1/shared/owner', owner: issue.user
2013-04-12 17:52:56 +01:00
json.closed_at issue.closed_at.to_i
json.closed_by do
2014-01-21 04:51:49 +00:00
json.partial! 'api/v1/shared/member', member: issue.closer
2013-04-12 17:52:56 +01:00
end if issue.closer
json.created_at issue.created_at.to_i
json.updated_at issue.updated_at.to_i
end