_news.html.erb
8 lines
| 491 B
| text/plain
|
TextLexer
|
r330 | <h3><%=l(:label_news_latest)%></h3> | ||
|
r7101 | <%= render(:partial => 'news/news', | ||
|
r330 | :collection => News.find(:all, | ||
:limit => 10, | ||||
|
r334 | :order => "#{News.table_name}.created_on DESC", | ||
:conditions => "#{News.table_name}.project_id in (#{@user.projects.collect{|m| m.id}.join(',')})", | ||||
|
r7101 | :include => [:project, :author])) unless @user.projects.empty? %> | ||