OSDN Git Service

t#31223:add them contents list for author and artist
[pettanr/pettanr.git] / app / views / artists / resource_pictures.html.erb
diff --git a/app/views/artists/resource_pictures.html.erb b/app/views/artists/resource_pictures.html.erb
new file mode 100644 (file)
index 0000000..ead33de
--- /dev/null
@@ -0,0 +1,38 @@
+<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| %>
+  <tr>
+    <td>
+      <%= link_to tag(:img, resource_picture.tmb_opt_img_tag), resource_picture_path(resource_picture) %>
+    </td>
+    <td>
+      <%= render resource_picture.credit_template, :picture => resource_picture %>
+    </td>
+    <td>
+      <%= link_to(h(truncate(resource_picture.artist.name, :length => 8)), artist_path(resource_picture.artist)) %>
+    </td>
+    <td>
+      <%= h resource_picture.ext %>
+    </td>
+    <td>
+      <%= resource_picture.width %>px
+    </td>
+    <td>
+      <%= resource_picture.height %>px
+    </td>
+    <td>
+      <%= resource_picture.filesize %>bytes
+    </td>
+  </tr>
+<% end %>
+</table>