OSDN Git Service

t#31223:add them contents list for author and artist
[pettanr/pettanr.git] / app / views / artists / resource_pictures.html.erb
1 <h1><%= t '.title' -%></h1>
2
3 <table>
4   <tr>
5     <th></th>
6     <th></th>
7     <th><%= t_m 'ResourcePicture.artist_id' -%></th>
8     <th><%= t_m 'ResourcePicture.ext' -%></th>
9     <th><%= t_m 'ResourcePicture.width' -%></th>
10     <th><%= t_m 'ResourcePicture.height' -%></th>
11     <th><%= t_m 'ResourcePicture.filesize' -%></th>
12   </tr>
13 <% @resource_pictures.each do |resource_picture| %>
14   <tr>
15     <td>
16       <%= link_to tag(:img, resource_picture.tmb_opt_img_tag), resource_picture_path(resource_picture) %>
17     </td>
18     <td>
19       <%= render resource_picture.credit_template, :picture => resource_picture %>
20     </td>
21     <td>
22       <%= link_to(h(truncate(resource_picture.artist.name, :length => 8)), artist_path(resource_picture.artist)) %>
23     </td>
24     <td>
25       <%= h resource_picture.ext %>
26     </td>
27     <td>
28       <%= resource_picture.width %>px
29     </td>
30     <td>
31       <%= resource_picture.height %>px
32     </td>
33     <td>
34       <%= resource_picture.filesize %>bytes
35     </td>
36   </tr>
37 <% end %>
38 </table>