show "no data" label when there's nothing to display on changelog and roadmap

git-svn-id: http://redmine.rubyforge.org/svn/trunk@255 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2007-02-18 13:37:13 +00:00
parent 4ef86b965b
commit ddd0796e40
2 changed files with 4 additions and 0 deletions

View File

@ -13,6 +13,8 @@
<% end %>
</div>
<% if @fixed_issues.empty? %><p><i><%= l(:label_no_data) %></i></p><% end %>
<% ver_id = nil
@fixed_issues.each do |issue| %>
<% unless ver_id == issue.fixed_version_id %>

View File

@ -13,6 +13,8 @@
<% end %>
</div>
<% if @versions.empty? %><p><i><%= l(:label_no_data) %></i></p><% end %>
<% @versions.each do |version| %>
<h3 class="icon22 icon22-package"><%= version.name %></h3>
<p><%= format_date(version.effective_date) %><br />