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
This commit is contained in:
Jean-Philippe Lang 2007-04-20 10:26:57 +00:00
parent c10541feb7
commit acfb87a07b
1 changed files with 2 additions and 0 deletions

View File

@ -52,9 +52,11 @@
</div> </div>
<% end %> <% end %>
<% if @news.any? %>
<div class="box"> <div class="box">
<h3><%=l(:label_news_latest)%></h3> <h3><%=l(:label_news_latest)%></h3>
<%= render :partial => 'news/news', :collection => @news %> <%= render :partial => 'news/news', :collection => @news %>
<p class="textcenter"><small><%= link_to l(:label_news_view_all), :controller => 'projects', :action => 'list_news', :id => @project %></small></p> <p class="textcenter"><small><%= link_to l(:label_news_view_all), :controller => 'projects', :action => 'list_news', :id => @project %></small></p>
</div> </div>
<% end %>
</div> </div>