Mercurial > hg > soundsoftware-site
annotate app/views/news/index.api.rsb @ 1452:d6b9fd02bb89 feature_36_js_refactoring
Deprecated develoment branch.
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Fri, 11 Oct 2013 17:01:24 +0100 |
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 |