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

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