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

12 lines
368 B
Plaintext
Raw Normal View History

json.issue do
2014-01-21 04:51:49 +00:00
json.partial! 'issue', issue: @issue
2013-04-15 12:31:46 +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-15 12:31:46 +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-15 12:31:46 +01:00
end if @issue.closer
json.created_at @issue.created_at.to_i
json.updated_at @issue.updated_at.to_i
end