From 0306e94538aedd4cdcbf845fb42dde843eae9b8d Mon Sep 17 00:00:00 2001 From: jwollert Date: Wed, 27 Apr 2011 11:46:45 +0200 Subject: [PATCH] render xls export link --- lib/widget/table/report_table.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/widget/table/report_table.rb b/lib/widget/table/report_table.rb index 374da42cae..d45bdb0f06 100644 --- a/lib/widget/table/report_table.rb +++ b/lib/widget/table/report_table.rb @@ -53,6 +53,7 @@ class Widget::Table::ReportTable < Widget::Table render_tfoot render_tbody write "" + render_xls_export end def render_tbody @@ -130,6 +131,12 @@ class Widget::Table::ReportTable < Widget::Table write "" end + def render_xls_export + write (content_tag :div, :id => "result-formats", :style => "font-size: 14px; line-height: 2;" do + link_to l(:export_as_excel), :action => :index, :format => "xls" + end) + end + def debug_content content_tag :pre do debug_pre_content = "[ Query ]" +