1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-01-05 15:11:31 +00:00
redmine/app/views/imports/show.html.erb
Jean-Philippe Lang 035edd39c4 Import issues from CSV file (#950).
git-svn-id: http://svn.redmine.org/redmine/trunk@14493 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-08-14 08:20:32 +00:00

31 lines
810 B
Plaintext

<h2><%= l(:label_import_issues) %></h2>
<% if @import.unsaved_items.count == 0 %>
<p><%= l(:notice_import_finished, :count => @import.saved_items.count) %></p>
<ol>
<% @import.saved_objects.each do |issue| %>
<li><%= link_to_issue issue %></li>
<% end %>
</ul>
<% else %>
<p><%= l(:notice_import_finished_with_errors, :count => @import.unsaved_items.count, :total => @import.total_items) %></p>
<table id="unsaved-items" class="list">
<tr>
<th>Position</th>
<th>Message</th>
</tr>
<% @import.unsaved_items.each do |item| %>
<tr>
<td><%= item.position %></td>
<td><%= simple_format_without_paragraph item.message %></td>
</tr>
<% end %>
</table>
<% end %>
<% content_for :sidebar do %>
<%= render :partial => 'issues/sidebar' %>
<% end %>