From 83f79d6ca2e084c36f1469da2e1298df65c595dc Mon Sep 17 00:00:00 2001 From: Alexander Machehin Date: Mon, 15 Apr 2013 17:31:46 +0600 Subject: [PATCH] [#42] add show view --- app/views/api/v1/issues/show.json.jbuilder | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 app/views/api/v1/issues/show.json.jbuilder diff --git a/app/views/api/v1/issues/show.json.jbuilder b/app/views/api/v1/issues/show.json.jbuilder new file mode 100644 index 000000000..4cff5fbb7 --- /dev/null +++ b/app/views/api/v1/issues/show.json.jbuilder @@ -0,0 +1,11 @@ +json.issue do |json| + json.partial! 'issue', :issue => @issue, :json => json + json.issue @issue.body + json.partial! 'api/v1/shared/owner', :owner => @issue.user + json.closed_at @issue.closed_at.to_i + json.closed_by do |json_user| + json.partial! 'api/v1/shared/member', :member => @issue.closer, :tag => json_user + end if @issue.closer + json.created_at @issue.created_at.to_i + json.updated_at @issue.updated_at.to_i +end