2006-07-29 23:54:22 +04:00
|
|
|
<h2><%=l(:label_news_plural)%></h2>
|
2006-06-28 22:11:03 +04:00
|
|
|
|
2006-09-03 14:25:21 +04:00
|
|
|
<% if @news.empty? %><p><i><%= l(:label_no_data) %></i></p><% end %>
|
|
|
|
|
2006-12-01 01:17:44 +03:00
|
|
|
<ul>
|
2006-06-28 22:11:03 +04:00
|
|
|
<% for news in @news %>
|
2006-12-01 01:17:44 +03:00
|
|
|
<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>
|
2006-06-28 22:11:03 +04:00
|
|
|
<% end %>
|
2006-12-01 01:17:44 +03:00
|
|
|
</ul>
|
|
|
|
|
2006-06-28 22:11:03 +04:00
|
|
|
|
|
|
|
<%= pagination_links_full @news_pages %>
|
|
|
|
<p>
|
2006-07-29 23:54:22 +04:00
|
|
|
<%= link_to_if_authorized '» ' + l(:label_news_new), :controller => 'projects', :action => 'add_news', :id => @project %>
|
2006-06-28 22:11:03 +04:00
|
|
|
</p>
|