annotate app/views/news/index.api.rsb @ 507:0c939c159af4 redmine-1.2

Update to Redmine 1.2.1 on 1.2-stable branch (Redmine SVN rev 6270)
author Chris Cannam
date Thu, 14 Jul 2011 10:32:19 +0100
parents 8661b858af72
children cbb26bc654de
rev   line source
Chris@119 1 api.array :news, api_meta(:total_count => @news_count, :offset => @offset, :limit => @limit) do
Chris@119 2 @newss.each do |news|
Chris@119 3 api.news do
Chris@119 4 api.id news.id
Chris@119 5 api.project(:id => news.project_id, :name => news.project.name) unless news.project.nil?
Chris@119 6 api.author(:id => news.author_id, :name => news.author.name) unless news.author.nil?
Chris@119 7
Chris@119 8 api.title news.title
Chris@119 9 api.summary news.summary
Chris@119 10 api.description news.description
Chris@119 11 api.created_on news.created_on
Chris@119 12 end
Chris@119 13 end
Chris@119 14 end