From acfb87a07ba71b907e3497e5a942420023df171c Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Fri, 20 Apr 2007 10:26:57 +0000 Subject: [PATCH] News box on project/show is hidden if there is no news to display. git-svn-id: http://redmine.rubyforge.org/svn/trunk@451 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/projects/show.rhtml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/views/projects/show.rhtml b/app/views/projects/show.rhtml index bc18a475..c8f109ea 100644 --- a/app/views/projects/show.rhtml +++ b/app/views/projects/show.rhtml @@ -52,9 +52,11 @@ <% end %> + <% if @news.any? %>

<%=l(:label_news_latest)%>

<%= render :partial => 'news/news', :collection => @news %>

<%= link_to l(:label_news_view_all), :controller => 'projects', :action => 'list_news', :id => @project %>

+ <% end %> \ No newline at end of file