OSDN Git Service

fix play leaf
[pettanr/pettanr.git] / app / views / pictures / list.html.erb
1 <h1><%= t '.title' -%></h1>
2
3 <table>
4   <tr>
5     <th></th>
6     <th><%= t_m 'Picture.id' -%></th>
7     <th><%= t_m 'Picture.original_picture_id' -%></th>
8     <th><%= t_m 'Picture.revision' -%></th>
9     <th><%= t_m 'Picture.ext' -%></th>
10     <th><%= t_m 'Picture.width' -%></th>
11     <th><%= t_m 'Picture.height' -%></th>
12     <th><%= t_m 'Picture.filesize' -%></th>
13     <th><%= t_m 'Picture.md5' -%></th>
14     <th><%= t_m 'Picture.artist_id' -%></th>
15     <th><%= t_m 'Picture.license_id' -%></th>
16     <th><%= t_m 'Picture.artist_name' -%></th>
17     <th><%= t_m 'Picture.classname' -%></th>
18     <th><%= t_m 'Picture.credit' -%></th>
19     <th><%= t_m 'Picture.settings' -%></th>
20     <th><%= t_m 'Picture.created_at' -%></th>
21     <th><%= t_m 'Picture.updated_at' -%></th>
22   </tr>
23
24 <% @pictures.each do |picture| %>
25   <tr>
26     <td><%= link_to tag(:img, picture.tmb_opt_img_tag), picture.url %></td>
27     <td><%= link_to picture.id, browse_picture_path(picture) %></td>
28     <td><%= link_to picture.original_picture_id, browse_original_picture_path(picture.original_picture) %></td>
29     <td><%= picture.revision %></td>
30     <td><%= h picture.ext %></td>
31     <td><%= picture.width %></td>
32     <td><%= picture.height %></td>
33     <td><%= picture.filesize %></td>
34     <td><%= h(truncate(picture.md5, :length => 8)) %></td>
35     <td><%= link_to picture.artist_id, browse_artist_path(picture.artist) %></td>
36     <td><%= link_to picture.license_id, browse_license_path(picture.license) %></td>
37     <td><%= h(truncate(picture.artist_name, :length => 8)) %></td>
38     <td><%= h(truncate(picture.classname, :length => 8)) %></td>
39     <td><%= h(truncate(picture.credit, :length => 8)) %></td>
40     <td><%= h(truncate(picture.settings, :length => 8)) %></td>
41     <td><%= l picture.created_at %></td>
42     <td><%= l picture.updated_at %></td>
43   </tr>
44 <% end %>
45 </table>