summaryrefslogtreecommitdiffstats
path: root/app/views/my/blocks/_news.rhtml
blob: 4bad9a5422c8334cd6c804f19526a8e929027d39 (plain)
1
2
3
4
5
6
7
8
<h3><%=l(:label_news_latest)%></h3>

<%= render (:partial => 'news/news', 
            :collection => News.find(:all,
                                     :limit => 10,
                                     :order => 'news.created_on DESC',
                                     :conditions => "news.project_id in (#{@user.projects.collect{|m| m.id}.join(',')})",
                                     :include => [:project, :author])) unless @user.projects.empty? %>