Skip to content

Commit

Permalink
Fix-csv-imports (#856)
Browse files Browse the repository at this point in the history
Changes to be committed:
modified:   app/views/csv_imports/index.html.erb
  • Loading branch information
jendiamond authored Oct 20, 2020
1 parent 6b4da4c commit 3b96f94
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions app/views/csv_imports/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,19 @@
</thead>

<tbody>
<% @csv_imports.each do |csv_import| %>
<tr>
<td><%= link_to csv_import.id, csv_import %></td>
<td><%= csv_import.created_at.in_time_zone("America/Los_Angeles").strftime('%e %b %Y') %><br><%=csv_import.created_at.strftime(' %l:%M %p') %></td>
<td><%= csv_import.user.name || "Unknown" %></td>
<td><%= link_to csv_import.manifest.file.file, csv_import %></td>
<td><%= csv_import.record_count || "Unknown" %></td>
<td><%= csv_import.status || "Unknown" %></td>
<td><% if csv_import.elapsed_time %><%= csv_import.elapsed_time.round(3) || "Unknown" %><% end %></td>
<td><% if csv_import.elapsed_time_per_record %><%= csv_import.elapsed_time_per_record.round(3) || "Unknown" %><% end %></td>
</tr>
<% @csv_imports.each do |csv_import| %>
<tr>
<% if csv_import&.manifest&.file&.file %>
<td><%= link_to csv_import.id, csv_import %></td>
<td><%= csv_import.created_at.in_time_zone("America/Los_Angeles").strftime('%e %b %Y')%><br><%=csv_import.created_at.strftime('%l:%M %p') %></td>
<td><%= csv_import.user.name || "Unknown" %></td>
<td><%= link_to csv_import.manifest.file.file, csv_import %></td>
<td><%= csv_import.record_count || "Unknown" %></td>
<td><%= csv_import.status || "Unknown" %></td>
<td><% if csv_import.elapsed_time %><%= csv_import.elapsed_time.round(3) || "Unknown" %><% end %></td>
<td><% if csv_import.elapsed_time_per_record %><%= csv_import.elapsed_time_per_record.round(3) ||"Unknown" %><% end %></td>
<% end %>
</tr>
<% end %>
</tbody>
</table>
Expand Down

0 comments on commit 3b96f94

Please sign in to comment.