app/views/bulkrax/importers/show.html.erb in bulkrax-1.0.2 vs app/views/bulkrax/importers/show.html.erb in bulkrax-2.0.0
- old
+ new
@@ -99,12 +99,14 @@
<td></td>
<% end %>
<td><%= e.id %></td>
<% if e.status == "Complete" %>
<td><span class="glyphicon glyphicon-ok" style="color: green;"></span> <%= e.status %></td>
+ <% elsif e.status == "Pending" %>
+ <td><span class="glyphicon glyphicon-option-horizontal" style="color: blue;"></span> <%= e.status %></td>
<% else %>
- <td><span class="glyphicon glyphicon-remove" style="color: red;"></span> <%= e.status %></td>
+ <td><span class="glyphicon glyphicon-remove" style="color: <%= e.status == 'Deleted' ? 'green' : 'red' %>;"></span> <%= e.status %></td>
<% end %>
<% if e.last_error.present? %>
<td><%= link_to e.last_error.dig("error_class"), bulkrax.importer_entry_path(@importer.id, e.id) %></td>
<% else %>
<td></td>
@@ -135,11 +137,13 @@
<tr>
<td><%= link_to e.identifier, bulkrax.importer_entry_path(@importer.id, e.id) %></td>
<td><%= e.id %></td>
<% if e.status == "Complete" %>
<td><span class="glyphicon glyphicon-ok" style="color: green;"></span> <%= e.status %></td>
+ <% elsif e.status == "Pending" %>
+ <td><span class="glyphicon glyphicon-option-horizontal" style="color: blue;"></span> <%= e.status %></td>
<% else %>
- <td><span class="glyphicon glyphicon-remove" style="color: red;"></span> <%= e.status %></td>
+ <td><span class="glyphicon glyphicon-remove" style="color: <%= e.status == 'Deleted' ? 'green' : 'red' %>;"></span> <%= e.status %></td>
<% end %>
<% if e.last_error.present? %>
<td><%= link_to e.last_error.dig("error_class"), bulkrax.importer_entry_path(@importer.id, e.id) %></td>
<% else %>
<td></td>