Import Progress
<%# Reuse the status_badge helper - need to define it here since it's a partial %>
<% def status_badge(status) %>
<% case status %>
<% when 'pending' %>
<%= status.capitalize %>
<% when 'processing' %>
<%= status.capitalize %>
<% when 'completed' %>
<%= status.capitalize %>
<% when 'failed' %>
<%= status.capitalize %>
<% else %>
<%= status.capitalize %>
<% end %>
<% end %>
<%= status_badge(@data_import.status) %>
<%= number_with_delimiter(@data_import.processed_records) %> of <%= number_with_delimiter(@data_import.total_records) %> records
<%= @data_import.progress_percentage %>%
<%= number_with_delimiter(@data_import.total_records) %>
Total Records
<%= number_with_delimiter(@data_import.processed_records) %>
Processed
<%= number_with_delimiter(@data_import.failed_records) %>
Failed
<%= number_with_delimiter(@data_import.records_per_second) %>
Records/Sec