Skip to content

Commit

Permalink
add skip to new datatables work
Browse files Browse the repository at this point in the history
  • Loading branch information
orangewolf committed Feb 9, 2024
1 parent ac18fbb commit 2345cd3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/assets/javascripts/bulkrax/datatables.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ function statusSelect() {
statusSelect.add(new Option('Complete'))
statusSelect.add(new Option('Pending'))
statusSelect.add(new Option('Failed'))
statusSelect.add(new Option('Skipped'))
statusSelect.add(new Option('Deleted'))
statusSelect.add(new Option('Complete (with failures)'))

Expand Down
2 changes: 2 additions & 0 deletions app/controllers/concerns/bulkrax/datatables_behavior.rb
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ def status_message_for(e)
"<td><span class='glyphicon glyphicon-ok' style='color: green;'></span> #{e.status_message}</td>"
elsif e.status_message == "Pending"
"<td><span class='glyphicon glyphicon-option-horizontal' style='color: blue;'></span> #{e.status_message}</td>"
elsif e.status_message == "Skipped"
"<td><span class='glyphicon glyphicon-step-forward' style='color: yellow;'></span> #{e.status_message}</td>"
else
"<td><span class='glyphicon glyphicon-remove' style='color: #{e.status == 'Deleted' ? 'green' : 'red'};'></span> #{e.status_message}</td>"
end
Expand Down

0 comments on commit 2345cd3

Please sign in to comment.