Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/notify/import_issues_csv_email.text.erb')
-rw-r--r--app/views/notify/import_issues_csv_email.text.erb17
1 files changed, 17 insertions, 0 deletions
diff --git a/app/views/notify/import_issues_csv_email.text.erb b/app/views/notify/import_issues_csv_email.text.erb
index 1117f90714d..ef99914a821 100644
--- a/app/views/notify/import_issues_csv_email.text.erb
+++ b/app/views/notify/import_issues_csv_email.text.erb
@@ -9,3 +9,20 @@ Errors found on line <%= 'number'.pluralize(@results[:error_lines].size) %>: <%=
<% if @results[:parse_error] %>
Error parsing CSV file. Please make sure it has the correct format: a delimited text file that uses a comma to separate values.
<% end %>
+
+<% preprocess_errors = @results[:preprocess_errors] %>
+<%
+ if preprocess_errors.present?
+ missing_milestone_errors = preprocess_errors.dig(:milestone_errors, :missing) || []
+%>
+
+ <% if missing_milestone_errors.present? %>
+ <%= s_('Notify|Could not find the following %{column} values in %{project}%{parent_groups_clause}: %{error_lines}') % { error_lines: missing_milestone_errors[:titles].join(', '),
+ column: missing_milestone_errors[:header].downcase, project: @project.full_name,
+ parent_groups_clause: @project.group.present? ? ' or its parent groups' : ''} %>
+ <% end %>
+<% end %>
+
+<% if @results[:error_lines].present? || preprocess_errors.present? %>
+ <%= s_('Notify|Please fix the errors above and try the CSV import again.') %>
+<% end %>