From dea115919295dcf6755a47fa5169119c8b522ca4 Mon Sep 17 00:00:00 2001 From: Dmitry Sinina Date: Tue, 4 Sep 2018 22:26:34 +0300 Subject: [PATCH] CSV download on CDR page. closes #359 --- app/admin/cdr/cdrs.rb | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/app/admin/cdr/cdrs.rb b/app/admin/cdr/cdrs.rb index 37407439a..cc26d32c8 100644 --- a/app/admin/cdr/cdrs.rb +++ b/app/admin/cdr/cdrs.rb @@ -569,7 +569,7 @@ def scoped_collection end - index download_links: false do + index do column :id do |cdr| if cdr.dump_level_id>0 link_to( cdr.id, resource_path(cdr), class: "resource_id_link", title: 'Details') + " " + link_to(fa_icon('exchange'), dump_cdr_path(cdr), title: 'Download trace') @@ -847,7 +847,7 @@ def scoped_collection column :early_media_present - when 'all' + else #all or not defined policy column :id column :time_start column :time_connect @@ -986,10 +986,6 @@ def scoped_collection column :legb_rx_bytes column :legb_tx_bytes - - else - logger.error "unknown csv_policy '#{policy}'" - raise "unknown csv_policy '#{policy}'" end