<%= @title %>

<% if @has_errors || @skipped_count > 0%>
<%= safe_format(s_('BulkImport|Items assigned to placeholder users have been reassigned to users in %{strong_open}%{group}%{strong_close} according to the uploaded CSV file.'), strong_open: '', strong_close: '', group: @group.name) %>
<% else %>
<%= safe_format(s_('BulkImport|All items assigned to placeholder users have been reassigned to users in %{strong_open}%{group}%{strong_close} according to the uploaded CSV file.'), strong_open: '', strong_close: '', group: @group.name) %>
<% end %>

- <%= safe_format(ns_('BulkImport|%{count} placeholder user has been matched to a user.', 'BulkImport|%{count} placeholder users have been matched to users.', @success_count), count: @success_count) %>
<% if @has_errors %>
- <%= safe_format(ns_('BulkImport|%{count} placeholder user has not been matched to a user.', 'BulkImport|%{count} placeholder users have not been matched to users.', @failed_count), count: @failed_count) %>
<% end %>
<% if @skipped_count > 0 %>
- <%= safe_format(ns_('BulkImport|%{count} placeholder user has been skipped.', 'BulkImport|%{count} placeholder users have been skipped.', @skipped_count), count: @skipped_count) %>
<% end %>

<% if @has_errors %>
<%= s_('BulkImport|A CSV file with a list of placeholder reassignment errors is attached to this email.') %>
<% end %>

<% extra_params = @has_errors ? { status: 'failed' } : {} %>
<%= s_('BulkImport|Review results') %>: <%= group_group_members_url(@group, tab: 'placeholders', **extra_params) %>
