_news.rhtml
7 lines
| 471 B
| text/html+ruby
|
RhtmlLexer
|
r60 | <h3><%=l(:label_news_latest)%></h3> | |
|
r96 | <%= render (:partial => 'news/news', | |
:collection => News.find(:all, | |||
:limit => 10, | |||
|
r97 | :order => 'news.created_on DESC', | |
|
r96 | :conditions => "news.project_id in (#{@user.projects.collect{|m| m.id}.join(',')})", | |
:include => [:project, :author])) unless @user.projects.empty? %> |