<th><%= t_m 'ResourcePicture.height' -%></th>
<th><%= t_m 'ResourcePicture.filesize' -%></th>
</tr>
-<% @resource_pictures.each do |resource_picture| %>
- <tr>
- <td>
- <%= link_to tag(:img, resource_picture.tmb_opt_img_tag), resource_picture_path(resource_picture) %>
- </td>
- <td>
- <%= render resource_picture.credit_template, :picture => resource_picture %>
- </td>
- <td>
- <%= link_to(h(truncate(resource_picture.artist.name, :length => 8)), artist_path(resource_picture.artist)) %>
- </td>
- <td>
- <%= h resource_picture.ext %>
- </td>
- <td>
- <%= resource_picture.width %>px
- </td>
- <td>
- <%= resource_picture.height %>px
- </td>
- <td>
- <%= resource_picture.filesize %>bytes
- </td>
- </tr>
-<% end %>
+
+ <% @resource_pictures.each do |resource_picture| %>
+ <%= render 'list_item', :resource_picture => resource_picture %>
+ <% end %>
</table>
+<%= paginate(@resource_pictures) %>