OSDN Git Service

w
[pettanr/pettanr.git] / app / views / panel_pictures / list.html.erb
1 <h1><%= t '.title' -%></h1>
2
3 <table>
4   <tr>
5     <th><%= t_m 'PanelPicture.id' -%></th>
6     <th><%= t_m 'PanelPicture.panel_id' -%></th>
7     <th><%= t_m 'PanelPicture.picture_id' -%></th>
8     <th><%= t_m 'PanelPicture.link' -%></th>
9     <th><%= t_m 'PanelPicture.x' -%></th>
10     <th><%= t_m 'PanelPicture.y' -%></th>
11     <th><%= t_m 'PanelPicture.z' -%></th>
12     <th><%= t_m 'PanelPicture.t' -%></th>
13     <th><%= t_m 'PanelPicture.width' -%></th>
14     <th><%= t_m 'PanelPicture.height' -%></th>
15     <th><%= t_m 'PanelPicture.caption' -%></th>
16     <th><%= t_m 'PanelPicture.created_at' -%></th>
17     <th><%= t_m 'PanelPicture.updated_at' -%></th>
18   </tr>
19   <% @panel_pictures.each do |panel_picture| %>
20     <tr>
21       <td><%= link_to panel_picture.id, browse_panel_picture_path(panel_picture) %></td>
22       <td><%= link_to panel_picture.panel_id, browse_panel_path(panel_picture.panel) %></td>
23       <td><%= link_to tag(:img, panel_picture.picture.tmb_opt_img_tag), browse_picture_path(panel_picture.picture) %></td>
24       <td><%= link_to h(truncate(panel_picture.link, :length => 12)), panel_picture.link %></td>
25       <td><%= panel_picture.x %></td>
26       <td><%= panel_picture.y %></td>
27       <td><%= panel_picture.z %></td>
28       <td><%= panel_picture.t %></td>
29       <td><%= panel_picture.width %></td>
30       <td><%= panel_picture.height %></td>
31       <td><%= h(truncate(panel_picture.caption, :length => 12)) %></td>
32       <td><%= l panel_picture.created_at %></td>
33       <td><%= l panel_picture.updated_at %></td>
34     </tr>
35   <% end %>
36 </table>