OSDN Git Service

Merge branch 'v06' of git.sourceforge.jp:/gitroot/pettanr/pettanr into v06
[pettanr/pettanr.git] / app / views / resource_pictures / index.html.erb
index 859041c..f255489 100644 (file)
@@ -1,11 +1,17 @@
-<h1>Listing resource_pictures</h1>
-<% @resource_pictures.each do |resource_picture| %>
-  <% @resource_picture = resource_picture %>
-  <div>
-    <%= link_to resource_picture.filename, resource_picture_path(resource_picture) %>
-    <img src="<%= resource_picture.url -%>">
-    <%= resource_picture.width %>x<%= resource_picture.height %>
-    <%= resource_picture.filesize %>bytes
-    <%= render resource_picture.credit_template %>
-  </div>
-<% end %>
+<h1><%= t '.title' -%></h1>
+<table>
+  <tr>
+    <th></th>
+    <th></th>
+    <th><%= t_m 'ResourcePicture.artist_id' -%></th>
+    <th><%= t_m 'ResourcePicture.ext' -%></th>
+    <th><%= t_m 'ResourcePicture.width' -%></th>
+    <th><%= t_m 'ResourcePicture.height' -%></th>
+    <th><%= t_m 'ResourcePicture.filesize' -%></th>
+  </tr>
+
+  <% @resource_pictures.each do |resource_picture| %>
+    <%= render 'list_item', :resource_picture => resource_picture %>
+  <% end %>
+</table>
+<%= paginate(@paginate) %>