OSDN Git Service

66b6679adc3a4f29fc65ac78d7b1956321edecb7
[pettanr/pettanr.git] / app / views / original_pictures / list.html.erb
1 <h1><%= t '.title' -%></h1>
2
3 <table>
4   <tr>
5     <th></th>
6     <th><%= t_m 'OriginalPicture.id' -%></th>
7     <th><%= t_m 'OriginalPicture.ext' -%></th>
8     <th><%= t_m 'OriginalPicture.width' -%></th>
9     <th><%= t_m 'OriginalPicture.height' -%></th>
10     <th><%= t_m 'OriginalPicture.filesize' -%></th>
11     <th><%= t_m 'OriginalPicture.md5' -%></th>
12     <th><%= t_m 'OriginalPicture.artist_id' -%></th>
13     <th><%= t_m 'OriginalPicture.created_at' -%></th>
14     <th><%= t_m 'OriginalPicture.updated_at' -%></th>
15   </tr>
16
17   <% @original_pictures.each do |original_picture| %>
18     <tr>
19       <td><%= link_to tag(:img, original_picture.tmb_opt_img_tag), original_picture.url %></td>
20       <td><%= link_to original_picture.id,  browse_original_picture_path(original_picture) %></td>
21       <td><%= h original_picture.ext %></td>
22       <td><%= original_picture.width %></td>
23       <td><%= original_picture.height %></td>
24       <td><%= original_picture.filesize %></td>
25       <td><%= h(truncate(original_picture.md5, :length => 8)) %></td>
26       <td><%= link_to original_picture.artist_id, browse_artist_path(original_picture.artist) %></td>
27       <td><%= l original_picture.created_at %></td>
28       <td><%= l original_picture.updated_at %></td>
29     </tr>
30   <% end %>
31 </table>