- if @record
  h3= @record.model_name.human
  .display-row
    .display-label= @record.class.human_attribute_name(:state)
    .display-field= @record.human_state_name
  /= render 'migration_attribute', collection: @record.migration_attributes
  = record_info_fields @record
- else
  .display-row
    .display-label= @process_class.model_name.human
    .display-field= @process_class.human_state_name params[:state]
  - if @migration_batch
    .display-row
      .display-label= @migration_batch.class.model_name.human
      .display-field= link_to @migration_batch.presentation_name, [main_app, @migration_batch]
  - if @workflow_instances.size > Dunlop::Workflow.configuration.max_number_of_records_in_display_badge
    .panel.service_groups-list= t('dunlop.display_badge.more_records_than_maximum', count: Dunlop::Workflow.configuration.max_number_of_records_in_display_badge)
  - else
    .panel.service_groups-list== @workflow_instances.map{ |workflow_instance| link_to workflow_instance.presentation_name, [main_app, workflow_instance] }.join(', ')
  - if params[:target].present?
    = link_to t('dunlop.display_badge.collection_target_link'), params[:target]
