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

import_issues_csv_email.text.erb « notify « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ef99914a821493ea537884e3a15643ca93bdf9d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Your CSV import for project <%= @project.full_name %> (<%= project_url(@project) %>) has been completed.

<%= pluralize(@results[:success], 'issue') %> imported.

<% if @results[:error_lines].present? %>
Errors found on line <%= 'number'.pluralize(@results[:error_lines].size) %>: <%= @results[:error_lines].join(', ') %>. Please check if these lines have an issue title.
<% end %>

<% 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 %>