added no-data-to-display when the query has no entries to display

git-svn-id: https://dev.finn.de/svn/cockpit/branches/reporting_merge@1542 7926756e-e54e-46e6-9721-ed318f58905e
pull/6827/head
p.tessenow 14 years ago
parent 4b610e5f46
commit 01eb173d3d
  1. 8
      app/views/cost_reports/index.rhtml

@ -52,5 +52,9 @@
<% end %>
</div>
<%= render :partial => @table_partial, :locals => {:query => @query, :walker => @query.walker} %>
<p class="footnote"><%= l(:text_costs_are_rounded_note) %></p>
<% if @query.result.count > 0 %>
<%= render :partial => @table_partial, :locals => {:query => @query, :walker => @query.walker} %>
<p class="footnote"><%= l(:text_costs_are_rounded_note) %></p>
<% else %>
<p class="nodata"><%= l(:label_no_data) %></p>
<% end %>

Loading…
Cancel
Save