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:
parent
c10541feb7
commit
acfb87a07b
|
@ -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>
|
Loading…
Reference in New Issue