returngovuk_button_link_to"Deactivate this location",scheme_location_new_deactivation_path(location.scheme,location),warning:trueiflocation.active?||location.deactivates_in_a_long_time?
returngovuk_button_link_to"Reactivate this location",scheme_location_new_reactivation_path(location.scheme,location)iflocation.deactivated?&&!location.deactivated_by_scheme?
govuk_button_link_to"Reactivate this location",scheme_location_new_reactivation_path(location.scheme,location)iflocation.deactivated?&&!location.deactivated_by_scheme?
returngovuk_button_link_to"Deactivate this scheme",scheme_new_deactivation_path(scheme),warning:trueifscheme.active?||scheme.deactivates_in_a_long_time?
returngovuk_button_link_to"Reactivate this scheme",scheme_new_reactivation_path(scheme)ifscheme.deactivated?||scheme.deactivating_soon?
govuk_button_link_to"Reactivate this scheme",scheme_new_reactivation_path(scheme)ifscheme.deactivated?||scheme.deactivating_soon?
csv<<[id,log.collection_start_year,log.status,log.owning_organisation_name,log.assigned_to_id,log.assigned_to.email,"Leave","Log has no visible duplicates and at least one duplicate has been deleted since being affected"]
next
end
ifvisible_duplicates.length.zero?
ifvisible_duplicates.empty?
seen.add(id)
csv<<[id,log.collection_start_year,log.status,log.owning_organisation_name,log.assigned_to_id,log.assigned_to.email,"Leave","Log has no visible duplicates"]