Skip to content

Commit

Permalink
CSV download on CDR page. closes #359
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-sinina committed Sep 4, 2018
1 parent 2039297 commit dea1159
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions app/admin/cdr/cdrs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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


Expand Down

0 comments on commit dea1159

Please sign in to comment.