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

<%=l(:label_news_plural)%>

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

<%= l(:label_no_data) %>

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

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

Chris@1296:

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

Chris@1296:
Chris@1296: <%= textilizable(news, :description) %> Chris@1296:
Chris@1296: <% end %> Chris@1296: <% end %> Chris@1296:

<%= pagination_links_full @news_pages %>

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