OSDN Git Service

t#29061/t#29089/t#29076:add mylist. modify panel picture
[pettanr/pettanr.git] / app / views / home / panel_picture.html.erb
diff --git a/app/views/home/panel_picture.html.erb b/app/views/home/panel_picture.html.erb
new file mode 100644 (file)
index 0000000..0770b64
--- /dev/null
@@ -0,0 +1,10 @@
+<h1>Listing my panel pictures</h1>
+
+<% @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>
+<% end %>