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