OSDN Git Service

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