-<h1>Listing panel_pictures</h1>
+<h1><%= t '.title' -%></h1>
<table>
<tr>
- <th>id</th>
- <th>panel</th>
- <th>resource_picture</th>
- <th>link</th>
- <th>x</th>
- <th>y</th>
- <th>z</th>
- <th>t</th>
- <th>Width</th>
- <th>Height</th>
- <th>flipv</th>
- <th>fliph</th>
- <th>created_at</th>
- <th>updated_at</th>
+ <th><%= t_m 'PanelPicture.id' -%></th>
+ <th><%= t_m 'PanelPicture.panel_id' -%></th>
+ <th><%= t_m 'PanelPicture.picture_id' -%></th>
+ <th><%= t_m 'PanelPicture.link' -%></th>
+ <th><%= t_m 'PanelPicture.x' -%></th>
+ <th><%= t_m 'PanelPicture.y' -%></th>
+ <th><%= t_m 'PanelPicture.z' -%></th>
+ <th><%= t_m 'PanelPicture.t' -%></th>
+ <th><%= t_m 'PanelPicture.width' -%></th>
+ <th><%= t_m 'PanelPicture.height' -%></th>
+ <th><%= t_m 'PanelPicture.caption' -%></th>
+ <th><%= t_m 'PanelPicture.created_at' -%></th>
+ <th><%= t_m 'PanelPicture.updated_at' -%></th>
</tr>
-
-<% @panel_pictures.each do |panel_picture| %>
- <tr>
- <td><%= panel_picture.id %></td>
- <td><%= link_to panel_picture.panel_id, :controller => 'panels', :action => :browse, :id => panel_picture.panel_id%></td>
- <td><%= link_to panel_picture.resource_picture_id, :controller => 'resource_pictures', :action => :browse, :id => panel_picture.resource_picture_id %></td>
- <td><%= h panel_picture.link %></td>
- <td><%= panel_picture.x %></td>
- <td><%= panel_picture.y %></td>
- <td><%= panel_picture.z %></td>
- <td><%= panel_picture.t %></td>
- <td><%= panel_picture.width %></td>
- <td><%= panel_picture.height %></td>
- <td><%= panel_picture.flipv %></td>
- <td><%= panel_picture.fliph %></td>
- <td><%= panel_picture.created_at %></td>
- <td><%= panel_picture.updated_at %></td>
- </tr>
-<% end %>
+ <% @panel_pictures.each do |panel_picture| %>
+ <tr>
+ <td><%= link_to panel_picture.id, browse_panel_picture_path(panel_picture) %></td>
+ <td><%= link_to panel_picture.panel_id, browse_panel_path(panel_picture.panel) %></td>
+ <td><%= link_to tag(:img, panel_picture.picture.tmb_opt_img_tag), browse_picture_path(panel_picture.picture) %></td>
+ <td><%= link_to h(truncate(panel_picture.link, :length => 12)), panel_picture.link %></td>
+ <td><%= panel_picture.x %></td>
+ <td><%= panel_picture.y %></td>
+ <td><%= panel_picture.z %></td>
+ <td><%= panel_picture.t %></td>
+ <td><%= panel_picture.width %></td>
+ <td><%= panel_picture.height %></td>
+ <td><%= h(truncate(panel_picture.caption, :length => 12)) %></td>
+ <td><%= l panel_picture.created_at %></td>
+ <td><%= l panel_picture.updated_at %></td>
+ </tr>
+ <% end %>
</table>