<h1>Listing original_pictures</h1>
<%= render 'uploader' %>
-<table>
- <tr>
- <th>Ext</th>
- <th>Width</th>
- <th>Height</th>
- <th>filesize</th>
- <th>artist</th>
- <th></th>
- </tr>
-
<% @original_pictures.each do |original_picture| %>
- <tr>
- <td><%= original_picture.ext %></td>
- <td><%= original_picture.width %></td>
- <td><%= original_picture.height %></td>
- <td><%= original_picture.filesize %></td>
- <td><%= original_picture.artist_id %></td>
- <td><%= link_to 'Show', original_picture %></td>
- <td>
- <% if author_signed_in? -%>
- <% if original_picture.own? current_author -%>
- <%= link_to 'Destroy', original_picture, confirm: 'Are you sure?', method: :delete %>
- <% end -%>
- <% end -%>
- </td>
- </tr>
+ <div>
+ <%= original_picture.filename %>
+ <img src="<%= original_picture.resource_picture.url('thumbnail') -%>">
+ <%= original_picture.width %>x<%= original_picture.height %>
+ <%= original_picture.filesize %>bytes
+ 画:<%= h original_picture.artist.name %>
+ </div>
<% end %>
-</table>