annotate .svn/pristine/e9/e925522416cdbb5576a4e234cbc772bd8f48a833.svn-base @ 1327:287f201c2802 redmine-2.2-integration

Add italic
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Wed, 19 Jun 2013 20:56:22 +0100
parents 038ba2d95de8
children
rev   line source
Chris@1296 1 api.wiki_page do
Chris@1296 2 api.title @page.title
Chris@1296 3 if @page.parent
Chris@1296 4 api.parent :title => @page.parent.title
Chris@1296 5 end
Chris@1296 6 api.text @content.text
Chris@1296 7 api.version @content.version
Chris@1296 8 api.author(:id => @content.author_id, :name => @content.author.name)
Chris@1296 9 api.comments @page.content.comments
Chris@1296 10 api.created_on @page.created_on
Chris@1296 11 api.updated_on @content.updated_on
Chris@1296 12
Chris@1296 13 api.array :attachments do
Chris@1296 14 @page.attachments.each do |attachment|
Chris@1296 15 render_api_attachment(attachment, api)
Chris@1296 16 end
Chris@1296 17 end if include_in_api_response?('attachments')
Chris@1296 18 end