Mercurial > hg > soundsoftware-site
annotate .svn/pristine/e9/e925522416cdbb5576a4e234cbc772bd8f48a833.svn-base @ 1298:4f746d8966dd redmine_2.3_integration
Merge from redmine-2.3 branch to create new branch redmine-2.3-integration
author | Chris Cannam |
---|---|
date | Fri, 14 Jun 2013 09:28:30 +0100 |
parents | 622f24f53b42 |
children |
rev | line source |
---|---|
Chris@1295 | 1 api.wiki_page do |
Chris@1295 | 2 api.title @page.title |
Chris@1295 | 3 if @page.parent |
Chris@1295 | 4 api.parent :title => @page.parent.title |
Chris@1295 | 5 end |
Chris@1295 | 6 api.text @content.text |
Chris@1295 | 7 api.version @content.version |
Chris@1295 | 8 api.author(:id => @content.author_id, :name => @content.author.name) |
Chris@1295 | 9 api.comments @page.content.comments |
Chris@1295 | 10 api.created_on @page.created_on |
Chris@1295 | 11 api.updated_on @content.updated_on |
Chris@1295 | 12 |
Chris@1295 | 13 api.array :attachments do |
Chris@1295 | 14 @page.attachments.each do |attachment| |
Chris@1295 | 15 render_api_attachment(attachment, api) |
Chris@1295 | 16 end |
Chris@1295 | 17 end if include_in_api_response?('attachments') |
Chris@1295 | 18 end |