To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / .svn / pristine / 2c / 2c76b08002398b97784edeca2011d8a77c453847.svn-base @ 1297:0a574315af3e
History | View | Annotate | Download (491 Bytes)
| 1 |
<h3><%=l(:label_news_latest)%></h3> |
|---|---|
| 2 |
|
| 3 |
<%= render(:partial => 'news/news', |
| 4 |
:collection => News.find(:all, |
| 5 |
:limit => 10, |
| 6 |
:order => "#{News.table_name}.created_on DESC",
|
| 7 |
:conditions => "#{News.table_name}.project_id in (#{@user.projects.collect{|m| m.id}.join(',')})",
|
| 8 |
:include => [:project, :author])) unless @user.projects.empty? %> |