2018-12-06 00:51:30 +00:00
- text_style = 'font-size:16px; text-align:center; line-height:30px;'
%p{ style: text_style }
2022-09-13 00:10:14 +00:00
- project_link = link_to(@project.full_name, project_url(@project), style: "color:#3777b0; text-decoration:none;")
= s_('Notify|Your CSV import for project %{project_link} has been completed.').html_safe % { project_link: project_link }
2018-12-06 00:51:30 +00:00
%p{ style: text_style }
2022-09-13 00:10:14 +00:00
- issues = n_('%d issue', '%d issues', @results[:success]) % @results[:success]
= s_('Notify|%{issues} imported.') % { issues: issues }
2018-12-06 00:51:30 +00:00
2018-12-31 08:39:43 +00:00
- if @results[:error_lines].present?
2018-12-06 00:51:30 +00:00
%p{ style: text_style }
2022-09-13 00:10:14 +00:00
= s_('Notify|Errors found on %{singular_or_plural_line}: %{error_lines}. Please check if these lines have an issue title.') % { singular_or_plural_line: n_('line', 'lines', @results[:error_lines].size),
error_lines: @results[:error_lines].join(', ') }
2018-12-06 00:51:30 +00:00
2018-12-31 08:39:43 +00:00
- if @results[:parse_error]
2018-12-06 00:51:30 +00:00
%p{ style: text_style }
2022-09-13 00:10:14 +00:00
= s_('Notify|Error parsing CSV file. Please make sure it has the correct format: a delimited text file that uses a comma to separate values.')