blob: 85430ef548db5f04f6856ea3bb18877985a88871 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
<h3><%=l(:label_news_latest)%></h3>
<ul>
<% for news in News.find :all,
:limit => 10,
:conditions => "news.project_id in (#{@user.projects.collect{|m| m.id}.join(',')})",
:include => [:project, :author] %>
<li><%= link_to news.title, :controller => 'news', :action => 'show', :id => news %><br />
<% unless news.summary.empty? %><%= news.summary %><br /><% end %>
<em><%= news.author.name %>, <%= format_time(news.created_on) %></em><br />
</li>
<% end unless @user.projects.empty? %>
</ul>
|