annotate app/views/wiki/show.api.rsb @ 1115:433d4f72a19b redmine-2.2

Update to Redmine SVN revision 11137 on 2.2-stable branch
author Chris Cannam
date Mon, 07 Jan 2013 12:01:42 +0000
parents
children 261b3d9a4903
rev   line source
Chris@1115 1 api.wiki_page do
Chris@1115 2 api.title @page.title
Chris@1115 3 if @page.parent
Chris@1115 4 api.parent :title => @page.parent.title
Chris@1115 5 end
Chris@1115 6 api.text @content.text
Chris@1115 7 api.version @content.version
Chris@1115 8 api.author(:id => @content.author_id, :name => @content.author.name)
Chris@1115 9 api.comments @page.content.comments
Chris@1115 10 api.created_on @page.created_on
Chris@1115 11 api.updated_on @content.updated_on
Chris@1115 12
Chris@1115 13 api.array :attachments do
Chris@1115 14 @page.attachments.each do |attachment|
Chris@1115 15 render_api_attachment(attachment, api)
Chris@1115 16 end
Chris@1115 17 end if include_in_api_response?('attachments')
Chris@1115 18 end