annotate app/views/my/blocks/_news.html.erb @ 949:ebfda4c68b7a bug_505

Fixes Bug #505 (introduced in Bug #97): now also sends emails to all users members of a group when the group is added to a project.
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Thu, 02 Aug 2012 19:40:23 +0100
parents cbb26bc654de
children 622f24f53b42
rev   line source
Chris@0 1 <h3><%=l(:label_news_latest)%></h3>
Chris@0 2
Chris@909 3 <%= render(:partial => 'news/news',
Chris@0 4 :collection => News.find(:all,
Chris@0 5 :limit => 10,
Chris@0 6 :order => "#{News.table_name}.created_on DESC",
Chris@0 7 :conditions => "#{News.table_name}.project_id in (#{@user.projects.collect{|m| m.id}.join(',')})",
Chris@909 8 :include => [:project, :author])) unless @user.projects.empty? %>