list_news.rhtml
13 lines
| 548 B
| text/html+ruby
|
RhtmlLexer
|
r90 | <div class="contextual"> | ||
|
r154 | <%= link_to_if_authorized l(:label_news_new), {:controller => 'projects', :action => 'add_news', :id => @project}, :class => 'icon icon-add' %> | ||
|
r90 | </div> | ||
|
r12 | <h2><%=l(:label_news_plural)%></h2> | ||
|
r2 | |||
|
r20 | <% if @news.empty? %><p><i><%= l(:label_no_data) %></i></p><% end %> | ||
|
r96 | <%= render :partial => 'news/news', :collection => @news %> | ||
|
r330 | <%= pagination_links_full @news_pages %> | ||
|
r663 | |||
<% content_for :header_tags do %> | ||||
<%= auto_discovery_link_tag(:atom, params.merge({:format => 'atom', :page => nil, :key => User.current.rss_key})) %> | ||||
<% end %> | ||||