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

<%=l(:label_news_plural)%>

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

<%= l(:label_no_data) %>

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

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

Chris@0:

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

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

<%= pagination_links_full @news_pages %>

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