Commit acfb87a0 authored by Jean-Philippe Lang's avatar Jean-Philippe Lang

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
parent c10541fe
......@@ -52,9 +52,11 @@
</div>
<% end %>
<% if @news.any? %>
<div class="box">
<h3><%=l(:label_news_latest)%></h3>
<%= 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>
</div>
<% end %>
</div>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment