Chris@909:
Chris@909: <%= link_to(l(:label_news_new), Chris@909: new_project_news_path(@project), Chris@909: :class => 'icon icon-add', Chris@909: :onclick => 'Element.show("add-news"); Form.Element.focus("news_title"); return false;') if @project && User.current.allowed_to?(:manage_news, @project) %> Chris@909:
Chris@909: Chris@909: Chris@909: Chris@909:

<%=l(:label_news_plural)%>

Chris@909: Chris@909: <% if @newss.empty? %> Chris@909:

<%= l(:label_no_data) %>

Chris@909: <% else %> Chris@909: <% @newss.each do |news| %> Chris@909:

<%= avatar(news.author, :size => "24") %><%= link_to_project(news.project) + ': ' unless news.project == @project %> Chris@909: <%= link_to h(news.title), news_path(news) %> Chris@909: <%= "(#{l(:label_x_comments, :count => news.comments_count)})" if news.comments_count > 0 %>

Chris@909:

<%= authoring news.created_on, news.author %>

Chris@909:
Chris@909: <%= textilizable(news.description) %> Chris@909:
Chris@909: <% end %> Chris@909: <% end %> Chris@909:

<%= pagination_links_full @news_pages %>

Chris@909: Chris@909: <% other_formats_links do |f| %> Chris@909: <%= f.link_to 'Atom', :url => {:project_id => @project, :key => User.current.rss_key} %> Chris@909: <% end %> Chris@909: Chris@909: <% content_for :header_tags do %> Chris@909: <%= auto_discovery_link_tag(:atom, params.merge({:format => 'atom', :page => nil, :key => User.current.rss_key})) %> Chris@909: <%= stylesheet_link_tag 'scm' %> Chris@909: <% end %> Chris@909: Chris@909: <% html_title(l(:label_news_plural)) -%>