summaryrefslogtreecommitdiffstats
path: root/app/views/imports/show.html.erb
blob: 3a0d67611a748b3725aefff6d40fc3e0c4d75e91 (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
29
30
31
32
33
34
35
36
<h2><%= l(:label_import_issues) %></h2>

<% if @import.saved_items.count > 0 %>
  <p><%= l(:notice_import_finished, :count => @import.saved_items.count) %>:</p>

  <ul id="saved-items">
  <% @import.saved_objects.each do |issue| %>
    <li><%= link_to_issue issue %></li>
  <% end %>
  </ul>
<% end %>

<% if @import.unsaved_items.count > 0 %>
  <p><%= l(:notice_import_finished_with_errors, :count => @import.unsaved_items.count, :total => @import.total_items) %>:</p>

  <table id="unsaved-items" class="list">
    <thead>
    <tr>
      <th>Position</th>
      <th>Message</th>
    </tr>
    </thead>
    <tbody>
    <% @import.unsaved_items.each do |item| %>
    <tr>
      <td><%= item.position %></td>
      <td><%= simple_format_without_paragraph item.message %></td>
    </tr>
    <% end %>
    </tbody>
  </table>
<% end %>

<% content_for :sidebar do %>
    <%= render :partial => 'issues/sidebar' %>
<% end %>