|
|
@ -41,14 +41,8 @@ See doc/COPYRIGHT.rdoc for more details. |
|
|
|
</li> |
|
|
|
</li> |
|
|
|
<% end %> |
|
|
|
<% end %> |
|
|
|
<% end %> |
|
|
|
<% end %> |
|
|
|
<% if @newss.empty? %> |
|
|
|
|
|
|
|
<% if managable %> |
|
|
|
<% if @newss.any? %> |
|
|
|
<%= no_results_box(action_url: new_project_news_path(@project), |
|
|
|
|
|
|
|
display_action: true) %> |
|
|
|
|
|
|
|
<% else %> |
|
|
|
|
|
|
|
<%= no_results_box %> |
|
|
|
|
|
|
|
<% end %> |
|
|
|
|
|
|
|
<% else %> |
|
|
|
|
|
|
|
<% @newss.each do |news| %> |
|
|
|
<% @newss.each do |news| %> |
|
|
|
<h3><%= avatar(news.author) %><%= link_to_project(news.project) + ': ' unless news.project == @project %> |
|
|
|
<h3><%= avatar(news.author) %><%= link_to_project(news.project) + ': ' unless news.project == @project %> |
|
|
|
<%= link_to h(news.title), news_path(news) %> |
|
|
|
<%= link_to h(news.title), news_path(news) %> |
|
|
@ -58,8 +52,17 @@ See doc/COPYRIGHT.rdoc for more details. |
|
|
|
<%= format_text(news.summary.present? ? news.summary : truncate(news.description), :object => news) %> |
|
|
|
<%= format_text(news.summary.present? ? news.summary : truncate(news.description), :object => news) %> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<% end %> |
|
|
|
<% end %> |
|
|
|
|
|
|
|
<% else %> |
|
|
|
|
|
|
|
<% if managable %> |
|
|
|
|
|
|
|
<%= no_results_box(action_url: new_project_news_path(@project), |
|
|
|
|
|
|
|
display_action: true) %> |
|
|
|
|
|
|
|
<% else %> |
|
|
|
|
|
|
|
<%= no_results_box %> |
|
|
|
|
|
|
|
<% end %> |
|
|
|
<% end %> |
|
|
|
<% end %> |
|
|
|
|
|
|
|
|
|
|
|
<%= pagination_links_full @newss %> |
|
|
|
<%= pagination_links_full @newss %> |
|
|
|
|
|
|
|
|
|
|
|
<%= other_formats_links do |f| %> |
|
|
|
<%= other_formats_links do |f| %> |
|
|
|
<%= f.link_to 'Atom', :url => {:project_id => @project, :key => User.current.rss_key} %> |
|
|
|
<%= f.link_to 'Atom', :url => {:project_id => @project, :key => User.current.rss_key} %> |
|
|
|
<% end %> |
|
|
|
<% end %> |
|
|
|