Mercurial > hg > soundsoftware-site
comparison app/views/news/.svn/text-base/index.api.rsb.svn-base @ 119:8661b858af72
* Update to Redmine trunk rev 4705
author | Chris Cannam |
---|---|
date | Thu, 13 Jan 2011 14:12:06 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
39:150ceac17a8d | 119:8661b858af72 |
---|---|
1 api.array :news, api_meta(:total_count => @news_count, :offset => @offset, :limit => @limit) do | |
2 @newss.each do |news| | |
3 api.news do | |
4 api.id news.id | |
5 api.project(:id => news.project_id, :name => news.project.name) unless news.project.nil? | |
6 api.author(:id => news.author_id, :name => news.author.name) unless news.author.nil? | |
7 | |
8 api.title news.title | |
9 api.summary news.summary | |
10 api.description news.description | |
11 api.created_on news.created_on | |
12 end | |
13 end | |
14 end |