summaryrefslogtreecommitdiffstats
path: root/app/views/my/blocks/_news.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/my/blocks/_news.html.erb')
-rw-r--r--app/views/my/blocks/_news.html.erb7
1 files changed, 1 insertions, 6 deletions
diff --git a/app/views/my/blocks/_news.html.erb b/app/views/my/blocks/_news.html.erb
index 3c391cedf..c478e4196 100644
--- a/app/views/my/blocks/_news.html.erb
+++ b/app/views/my/blocks/_news.html.erb
@@ -1,8 +1,3 @@
<h3><%=l(:label_news_latest)%></h3>
-<%= render(:partial => 'news/news',
- :collection => News.find(:all,
- :limit => 10,
- :order => "#{News.table_name}.created_on DESC",
- :conditions => "#{News.table_name}.project_id in (#{@user.projects.collect{|m| m.id}.join(',')})",
- :include => [:project, :author])) unless @user.projects.empty? %>
+<%= render :partial => 'news/news', :collection => news_items %>