Mercurial > hg > soundsoftware-site
annotate app/views/news/index.api.rsb @ 904:0a8317a50fa0 redmine-1.1
Close obsolete branch redmine-1.1
author | Chris Cannam |
---|---|
date | Fri, 14 Jan 2011 12:53:21 +0000 |
parents | af80e5618e9b |
children | cbb26bc654de |
rev | line source |
---|---|
Chris@117 | 1 api.array :news, api_meta(:total_count => @news_count, :offset => @offset, :limit => @limit) do |
Chris@117 | 2 @newss.each do |news| |
Chris@117 | 3 api.news do |
Chris@117 | 4 api.id news.id |
Chris@117 | 5 api.project(:id => news.project_id, :name => news.project.name) unless news.project.nil? |
Chris@117 | 6 api.author(:id => news.author_id, :name => news.author.name) unless news.author.nil? |
Chris@117 | 7 |
Chris@117 | 8 api.title news.title |
Chris@117 | 9 api.summary news.summary |
Chris@117 | 10 api.description news.description |
Chris@117 | 11 api.created_on news.created_on |
Chris@117 | 12 end |
Chris@117 | 13 end |
Chris@117 | 14 end |