mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-29 11:49:37 +00:00
Extend import controller to support arbitrary imports based on Import subclasses. This way, we may add other kinds of imports, by providing some views and a custom import class. This may also be done from within plugins. Patch by Gregor Schmidt. git-svn-id: http://svn.redmine.org/redmine/trunk@18145 e93f8b46-1217-0410-a6f0-8f06a7374b81
31 lines
876 B
Plaintext
31 lines
876 B
Plaintext
<h2><%= import_title %></h2>
|
|
|
|
<% if @import.saved_items.count > 0 %>
|
|
<p><%= l(:notice_import_finished, :count => @import.saved_items.count) %>:</p>
|
|
|
|
<%= render :partial => "#{import_partial_prefix}_saved_objects", :locals => { saved_objects: @import.saved_objects } %>
|
|
<% 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 %>
|
|
|
|
<%= render :partial => "#{import_partial_prefix}_sidebar" %>
|