OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/app/views/my/blocks/_latest_news.rhtml

8 lines
471 B

<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? %>