##// END OF EJS Templates
Always display the list of imported issues....
Jean-Philippe Lang -
r15109:d18ef93c8551
parent child
Show More
@@ -1,30 +1,32
1 1 <h2><%= l(:label_import_issues) %></h2>
2 2
3 <% if @import.unsaved_items.count == 0 %>
3 <% if @import.unsaved_items.count > 0 %>
4 4 <p><%= l(:notice_import_finished, :count => @import.saved_items.count) %></p>
5 5
6 6 <ul>
7 7 <% @import.saved_objects.each do |issue| %>
8 8 <li><%= link_to_issue issue %></li>
9 9 <% end %>
10 10 </ul>
11 <% else %>
11 <% end %>
12
13 <% if @import.unsaved_items.count > 0 %>
12 14 <p><%= l(:notice_import_finished_with_errors, :count => @import.unsaved_items.count, :total => @import.total_items) %></p>
13 15
14 16 <table id="unsaved-items" class="list">
15 17 <tr>
16 18 <th>Position</th>
17 19 <th>Message</th>
18 20 </tr>
19 21 <% @import.unsaved_items.each do |item| %>
20 22 <tr>
21 23 <td><%= item.position %></td>
22 24 <td><%= simple_format_without_paragraph item.message %></td>
23 25 </tr>
24 26 <% end %>
25 27 </table>
26 28 <% end %>
27 29
28 30 <% content_for :sidebar do %>
29 31 <%= render :partial => 'issues/sidebar' %>
30 32 <% end %>
General Comments 0
You need to be logged in to leave comments. Login now