<% if assets_with_expired_embargoes.empty? %>
Type of WorkTitleCurrent VisibilityEmbargo Release DateVisibility will Change to

There are no expired embargoes in effect at this time.

<% else %> <%= form_tag embargoes_path, method: :patch do %> <%= submit_tag 'Deactivate Embargoes for Selected', class: 'btn btn-primary' %> <% assets_with_expired_embargoes.each_with_index do |curation_concern, i| %> <% end %>
Type of WorkTitleCurrent VisibilityEmbargo Release DateVisibility will Change to
<%= button_for_add_to_batch curation_concern%> <%= curation_concern.human_readable_type %> <%= link_to curation_concern, edit_embargo_path(curation_concern) %> <%= visibility_badge(curation_concern.visibility) %> <%= curation_concern.embargo_release_date %> <%= visibility_badge(curation_concern.visibility_after_embargo) %> <%= link_to 'Deactivate Embargo', embargo_path(curation_concern), method: :delete, class: 'btn btn-primary' %>
<%= check_box_tag "embargoes[#{i}][copy_visibility]", curation_concern.id, true %> Change all files within <%= curation_concern %> to <%= visibility_badge(curation_concern.visibility_after_embargo) %>?
<% end %> <% end %>