OSDN Git Service

w
[pettanr/pettanr.git] / app / views / panel_pictures / index.html.erb
index afb2280..aa5ecb1 100644 (file)
@@ -1,31 +1,19 @@
-<h1>Listing panel_pictures</h1>
+<h1><%= t '.title' -%></h1>
 
 <table>
   <tr>
-    <th>id</th>
-    <th>panel</th>
-    <th>resource_picture</th>
-    <th>Width</th>
-    <th>Height</th>
-    <th>Top offset</th>
-    <th>Left offset</th>
-    <th>Zindex</th>
-    <th>flip</th>
-    <th>updated_at</th>
+    <th><%= t_m 'PanelPicture.id' -%></th>
+    <th><%= t_m 'PanelPicture.caption' -%></th>
+    <th><%= t_m 'PanelPicture.picture_id' -%></th>
+    <th><%=  -%></th>
+    <th><%= t_m 'PanelPicture.panel_id' -%></th>
+    <th><%= t_m 'PanelPicture.link' -%></th>
+    <th><%= t_m 'PanelPicture.z' -%></th>
+    <th><%= t_m 'PanelPicture.updated_at' -%></th>
   </tr>
 
-<% @panel_pictures.each do |panel_picture| %>
-  <tr>
-    <td><%= panel_picture.id %></td>
-    <td><%= panel_picture.panel_id %></td>
-    <td><%= panel_picture.resource_picture_id %></td>
-    <td><%= panel_picture.width %></td>
-    <td><%= panel_picture.height %></td>
-    <td><%= panel_picture.top_offset %></td>
-    <td><%= panel_picture.left_offset %></td>
-    <td><%= panel_picture.zindex %></td>
-    <td><%= panel_picture.flip %></td>
-    <td><%= panel_picture.updated_at %></td>
-  </tr>
-<% end %>
+  <% @panel_pictures.each do |panel_picture| %>
+    <%= render 'list_item', :panel_picture => panel_picture %>
+  <% end %>
 </table>
+<%= paginate(@paginate) %>