comparison .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
comparison
equal deleted inserted replaced
1294:3e4c3460b6ca 1295:622f24f53b42
1 api.wiki_page do
2 api.title @page.title
3 if @page.parent
4 api.parent :title => @page.parent.title
5 end
6 api.text @content.text
7 api.version @content.version
8 api.author(:id => @content.author_id, :name => @content.author.name)
9 api.comments @page.content.comments
10 api.created_on @page.created_on
11 api.updated_on @content.updated_on
12
13 api.array :attachments do
14 @page.attachments.each do |attachment|
15 render_api_attachment(attachment, api)
16 end
17 end if include_in_api_response?('attachments')
18 end