OSDN Git Service

t#30102:update i18n op rp au ar gc gp pc
[pettanr/pettanr.git] / app / views / resource_pictures / list.html.erb
1 <h1><%= t '.title' -%></h1>
2
3 <table>
4   <tr>
5     <th></th>
6     <th><%= t_m 'ResourcePicture.id' -%></th>
7     <th><%= t_m 'ResourcePicture.original_picture_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     <th><%= t_m 'ResourcePicture.md5' -%></th>
13     <th><%= t_m 'ResourcePicture.artist_id' -%></th>
14     <th><%= t_m 'ResourcePicture.license_id' -%></th>
15     <th><%= t_m 'ResourcePicture.artist_name' -%></th>
16     <th><%= t_m 'ResourcePicture.classname' -%></th>
17     <th><%= t_m 'ResourcePicture.credit' -%></th>
18     <th><%= t_m 'ResourcePicture.settings' -%></th>
19     <th><%= t_m 'ResourcePicture.picture_id' -%></th>
20     <th><%= t_m 'ResourcePicture.created_at' -%></th>
21     <th><%= t_m 'ResourcePicture.updated_at' -%></th>
22   </tr>
23   <% @resource_pictures.each do |resource_picture| %>
24     <tr>
25       <td><%= link_to tag(:img, resource_picture.tmb_opt_img_tag), resource_picture.url %></td>
26       <td><%= link_to resource_picture.id, browse_resource_picture_path(resource_picture.id) %></td>
27       <td><%= link_to resource_picture.original_picture_id, browse_original_picture_path(resource_picture.original_picture) %></td>
28       <td><%= h resource_picture.ext %></td>
29       <td><%= resource_picture.width %></td>
30       <td><%= resource_picture.height %></td>
31       <td><%= resource_picture.filesize %></td>
32       <td><%= h(truncate(resource_picture.md5, :length => 8)) %></td>
33       <td><%= link_to resource_picture.artist_id, browse_artist_path(resource_picture.artist) %></td>
34       <td><%= link_to resource_picture.license_id, browse_license_path(resource_picture.license) %></td>
35       <td><%= h(truncate(resource_picture.artist_name, :length => 8)) %></td>
36       <td><%= h(truncate(resource_picture.classname, :length => 8)) %></td>
37       <td><%= h(truncate(resource_picture.credit, :length => 8)) %></td>
38       <td><%= h(truncate(resource_picture.settings, :length => 8)) %></td>
39       <td><%= link_to resource_picture.picture_id, main_app.browse_picture_path(resource_picture.picture) %></td>
40       <td><%= l resource_picture.created_at %></td>
41       <td><%= l resource_picture.updated_at %></td>
42     </tr>
43   <% end %>
44 </table>