-<h1>Listing original_pictures</h1>
+<h1><%= t '.title' -%></h1>
-<%= render 'uploader' %>
<table>
<tr>
- <th>id</th>
- <th>Ext</th>
- <th>Width</th>
- <th>Height</th>
- <th>filesize</th>
- <th>artist</th>
- <th>md5</th>
- <th>created_at</th>
- <th>updated_at</th>
<th></th>
+ <th><%= t_m 'OriginalPicture.id' -%></th>
+ <th><%= t_m 'OriginalPicture.ext' -%></th>
+ <th><%= t_m 'OriginalPicture.width' -%></th>
+ <th><%= t_m 'OriginalPicture.height' -%></th>
+ <th><%= t_m 'OriginalPicture.filesize' -%></th>
+ <th><%= t_m 'OriginalPicture.md5' -%></th>
+ <th><%= t_m 'OriginalPicture.artist_id' -%></th>
+ <th><%= t_m 'OriginalPicture.created_at' -%></th>
+ <th><%= t_m 'OriginalPicture.updated_at' -%></th>
</tr>
-<% @original_pictures.each do |original_picture| %>
- <tr>
- <td><%= link_to original_picture.id, :action => :browse, :id => original_picture.id %></td>
- <td><%= original_picture.ext %></td>
- <td><%= original_picture.width %></td>
- <td><%= original_picture.height %></td>
- <td><%= original_picture.filesize %></td>
- <td><%= link_to original_picture.artist_id, :controller => 'artists', :action => :browse, :id => original_picture.artist_id %></td>
- <td><%= original_picture.md5 %></td>
- <td><%= original_picture.created_at %></td>
- <td><%= original_picture.updated_at %></td>
- <td>
- <%= link_to 'Destroy', original_picture, confirm: 'Are you sure?', method: :delete %>
- </td>
- </tr>
-<% end %>
+ <% @original_pictures.each do |original_picture| %>
+ <tr>
+ <td><%= link_to tag(:img, original_picture.tmb_opt_img_tag), original_picture.url %></td>
+ <td><%= link_to original_picture.id, browse_original_picture_path(original_picture) %></td>
+ <td><%= h original_picture.ext %></td>
+ <td><%= original_picture.width %></td>
+ <td><%= original_picture.height %></td>
+ <td><%= original_picture.filesize %></td>
+ <td><%= h(truncate(original_picture.md5, :length => 8)) %></td>
+ <td><%= link_to original_picture.artist_id, browse_artist_path(original_picture.artist) %></td>
+ <td><%= l original_picture.created_at %></td>
+ <td><%= l original_picture.updated_at %></td>
+ </tr>
+ <% end %>
</table>