summaryrefslogtreecommitdiffstats
path: root/app/views/my/blocks/_news.rhtml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/my/blocks/_news.rhtml')
-rw-r--r--app/views/my/blocks/_news.rhtml8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/views/my/blocks/_news.rhtml b/app/views/my/blocks/_news.rhtml
new file mode 100644
index 000000000..4bad9a542
--- /dev/null
+++ b/app/views/my/blocks/_news.rhtml
@@ -0,0 +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(',')})",
+ :include => [:project, :author])) unless @user.projects.empty? %> \ No newline at end of file