annotate app/views/wiki/show.api.rsb @ 1628:9c5f8e24dadc live tip

Quieten this cron script
author Chris Cannam
date Tue, 25 Aug 2020 11:38:49 +0100
parents 261b3d9a4903
children
rev   line source
Chris@1115 1 api.wiki_page do
Chris@1115 2 api.title @page.title
Chris@1115 3 if @page.parent
Chris@1115 4 api.parent :title => @page.parent.title
Chris@1115 5 end
Chris@1115 6 api.text @content.text
Chris@1115 7 api.version @content.version
Chris@1115 8 api.author(:id => @content.author_id, :name => @content.author.name)
Chris@1464 9 api.comments @content.comments
Chris@1115 10 api.created_on @page.created_on
Chris@1115 11 api.updated_on @content.updated_on
Chris@1115 12
Chris@1115 13 api.array :attachments do
Chris@1115 14 @page.attachments.each do |attachment|
Chris@1115 15 render_api_attachment(attachment, api)
Chris@1115 16 end
Chris@1115 17 end if include_in_api_response?('attachments')
Chris@1115 18 end