From 01eb173d3d5044f9777636c2e1a0b4abcf15c4ca Mon Sep 17 00:00:00 2001 From: "p.tessenow" Date: Mon, 2 Aug 2010 08:36:01 +0000 Subject: [PATCH] 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 --- app/views/cost_reports/index.rhtml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/views/cost_reports/index.rhtml b/app/views/cost_reports/index.rhtml index 7439841bb0..23c8c5ce13 100644 --- a/app/views/cost_reports/index.rhtml +++ b/app/views/cost_reports/index.rhtml @@ -52,5 +52,9 @@ <% end %> -<%= render :partial => @table_partial, :locals => {:query => @query, :walker => @query.walker} %> -

<%= l(:text_costs_are_rounded_note) %>

+<% if @query.result.count > 0 %> + <%= render :partial => @table_partial, :locals => {:query => @query, :walker => @query.walker} %> +

<%= l(:text_costs_are_rounded_note) %>

+<% else %> +

<%= l(:label_no_data) %>

+<% end %>