Mercurial > hg > soundsoftware-site
annotate app/views/news/.svn/text-base/index.api.rsb.svn-base @ 117:af80e5618e9b redmine-1.1
* Update to Redmine 1.1-stable branch (Redmine SVN rev 4707)
author | Chris Cannam |
---|---|
date | Thu, 13 Jan 2011 12:53:21 +0000 |
parents | |
children |
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 |