From 773d98af275345edcb8da95898fd428ba017e825 Mon Sep 17 00:00:00 2001 From: Henriette Dinger Date: Mon, 14 Mar 2016 16:04:04 +0100 Subject: [PATCH] Adapt structure for new 'no results box' --- lib/widget/table.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/widget/table.rb b/lib/widget/table.rb index f3c03ae83b..ccf78cd49f 100644 --- a/lib/widget/table.rb +++ b/lib/widget/table.rb @@ -59,7 +59,9 @@ class Widget::Table < Widget::Base def render write('') if @subject.result.count <= 0 - write(content_tag(:p, l(:label_no_data), class: 'nodata')) + write(content_tag(:div, '', class: 'generic-table--no-results-container') do + content_tag(:i, '', class: 'icon-info1') + content_tag(:h2, l(:no_results_title_text), class: 'generic-table--no-results-title') + end) else str = render_widget(resolve_table, @subject, @options.reverse_merge(to: @output)) @cache_output.write(str.html_safe) if @cache_output