diff options
Diffstat (limited to 'app/views/my/blocks/_news.rhtml')
-rw-r--r-- | app/views/my/blocks/_news.rhtml | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/app/views/my/blocks/_news.rhtml b/app/views/my/blocks/_news.rhtml index 4bad9a542..30085cf45 100644 --- a/app/views/my/blocks/_news.rhtml +++ b/app/views/my/blocks/_news.rhtml @@ -1,8 +1,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(',')})",
+<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? %>
\ No newline at end of file |