- action_descriptions = types.map do |type, actions|
  - capture do
    - case type
    - when 'submit'
      Submit
      = source_container(actions)
      %i.fas.fa-long-arrow-alt-right.text-info.mx-2
      = target_container(actions)
    - when 'delete'
      Delete
      = sanitize(delete_target(actions))
    - when 'add_role', 'set_bugowner'
      Assign
      = sanitize(role_target(actions))
      for
      = target_container(actions)
    - when 'change_devel'
      Set
      = source_container(actions)
      to be
      %b devel
      project/package of
      = target_container(actions)
    - when 'maintenance_incident'
      Submit update from
      = source_container(actions)
      %i.fas.fa-long-arrow-alt-right.text-info.mx-2
      = target_container(actions)
    - when 'maintenance_release'
      Maintenance release
      = source_container(actions)
      %i.fas.fa-long-arrow-alt-right.text-info.mx-2
      = target_container(actions)
    - when 'release'
      Release
      = source_container(actions)
      %i.fas.fa-long-arrow-alt-right.text-info.mx-2
      = target_container(actions)
= to_sentence(action_descriptions)
