summaryrefslogtreecommitdiffstats
path: root/app/views/imports/show.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/imports/show.html.erb')
-rw-r--r--app/views/imports/show.html.erb30
1 files changed, 30 insertions, 0 deletions
diff --git a/app/views/imports/show.html.erb b/app/views/imports/show.html.erb
new file mode 100644
index 000000000..ad6ae3681
--- /dev/null
+++ b/app/views/imports/show.html.erb
@@ -0,0 +1,30 @@
+<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 %>