2006-12-16 12:15:31 +00:00
|
|
|
<div class="contextual">
|
2007-01-08 19:21:59 +00:00
|
|
|
<%= link_to_if_authorized l(:label_news_new), {:controller => 'projects', :action => 'add_news', :id => @project}, :class => 'icon icon-add' %>
|
2006-12-16 12:15:31 +00:00
|
|
|
</div>
|
|
|
|
|
2006-07-29 19:54:22 +00:00
|
|
|
<h2><%=l(:label_news_plural)%></h2>
|
2006-06-28 18:11:03 +00:00
|
|
|
|
2006-09-03 10:25:21 +00:00
|
|
|
<% if @news.empty? %><p><i><%= l(:label_no_data) %></i></p><% end %>
|
2006-12-17 08:10:18 +00:00
|
|
|
<%= render :partial => 'news/news', :collection => @news %>
|
2007-03-12 17:59:02 +00:00
|
|
|
<%= pagination_links_full @news_pages %>
|
2007-08-29 16:52:35 +00:00
|
|
|
|
|
|
|
<% content_for :header_tags do %>
|
|
|
|
<%= auto_discovery_link_tag(:atom, params.merge({:format => 'atom', :page => nil, :key => User.current.rss_key})) %>
|
|
|
|
<% end %>
|