OSDN Git Service

t#30009:fix views
[pettanr/pettanr.git] / app / views / home / panel_picture.html.erb
index 0770b64..88801c9 100644 (file)
@@ -1,10 +1,19 @@
 <h1>Listing my panel pictures</h1>
 
+<table>
+  <tr>
+    <th>picture</th>
+    <th>credit</th>
+    <th>panel</th>
+    <th>link</th>
+    <th>x, y, z</th>
+    <th>t</th>
+    <th>WidthxHeight</th>
+    <th>vh</th>
+    <th>updated_at</th>
+  </tr>
+
 <% @panel_pictures.each do |panel_picture| %>
-  <div>
-    <%= panel_picture.picture.filename %>
-    <img src="<%= panel_picture.picture.url() -%>" width="<%= 44 -%>" height="<%= 44 -%>">
-    <%= panel_picture.picture.width %>x<%= panel_picture.picture.height %>
-    <%= panel_picture.picture.filesize %>bytes
-  </div>
+  <%= render 'panel_pictures/list_item', :panel_picture => panel_picture %>
 <% end %>
+</table>