Mercurial > hg > soundsoftware-site
view app/views/wiki/show.api.rsb @ 1349:4ff3f8b81ab3 luisf
Merge from live.
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Thu, 11 Jul 2013 17:32:32 +0100 |
parents | 433d4f72a19b |
children | 261b3d9a4903 |
line wrap: on
line source
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