Mercurial > hg > soundsoftware-site
diff .svn/pristine/e9/e925522416cdbb5576a4e234cbc772bd8f48a833.svn-base @ 1295:622f24f53b42 redmine-2.3
Update to Redmine SVN revision 11972 on 2.3-stable branch
author | Chris Cannam |
---|---|
date | Fri, 14 Jun 2013 09:02:21 +0100 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.svn/pristine/e9/e925522416cdbb5576a4e234cbc772bd8f48a833.svn-base Fri Jun 14 09:02:21 2013 +0100 @@ -0,0 +1,18 @@ +api.wiki_page do + api.title @page.title + if @page.parent + api.parent :title => @page.parent.title + end + api.text @content.text + api.version @content.version + api.author(:id => @content.author_id, :name => @content.author.name) + api.comments @page.content.comments + api.created_on @page.created_on + api.updated_on @content.updated_on + + api.array :attachments do + @page.attachments.each do |attachment| + render_api_attachment(attachment, api) + end + end if include_in_api_response?('attachments') +end