comparison app/views/my/blocks/_news.rhtml @ 0:513646585e45

* Import Redmine trunk SVN rev 3859
author Chris Cannam
date Fri, 23 Jul 2010 15:52:44 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:513646585e45
1 <h3><%=l(:label_news_latest)%></h3>
2
3 <%= render(:partial => 'news/news',
4 :collection => News.find(:all,
5 :limit => 10,
6 :order => "#{News.table_name}.created_on DESC",
7 :conditions => "#{News.table_name}.project_id in (#{@user.projects.collect{|m| m.id}.join(',')})",
8 :include => [:project, :author])) unless @user.projects.empty? %>