OSDN Git Service

t#31056:add diff import
[pettanr/pettanr.git] / app / views / provider_statuses / _pictures_errors.html.erb
diff --git a/app/views/provider_statuses/_pictures_errors.html.erb b/app/views/provider_statuses/_pictures_errors.html.erb
new file mode 100644 (file)
index 0000000..9dcbf05
--- /dev/null
@@ -0,0 +1,31 @@
+<h2>
+  <%= t('provider_statuses.pictures_import.fail', :size => failures.size) %>
+</h2>
+<table>
+  <tr>
+    <th><%= t_m 'Picture.id' -%></th>
+    <th><%= t_m 'Picture.original_picture_id' -%></th>
+    <th><%= t_m 'Picture.revision' -%></th>
+    <th><%= t_m 'Picture.artist_id' -%></th>
+    <th><%= t_m 'Picture.md5' -%></th>
+  </tr>
+  <% failures.each do |picture| %>
+    <tr>
+      <td>
+        <%= h(picture['id']) %>
+      </td>
+      <td>
+        <%= h(picture['original_picture_id']) %>
+      </td>
+      <td>
+        <%= h(picture['revision']) %>
+      </td>
+      <td>
+        <%= h(picture['artist_id']) %>
+      </td>
+      <td>
+        <%= h(picture['md5']) %>
+      </td>
+    </tr>
+  <% end %>
+</table>