OSDN Git Service

t#30102#30122:update i18n pictures
[pettanr/pettanr.git] / app / views / original_pictures / index.html.erb
index 8411ea1..aaad718 100644 (file)
@@ -4,22 +4,28 @@
 <table>
   <tr>
     <th>picture</th>
+    <th>revisions</th>
     <th>filename</th>
     <th>Width</th>
     <th>Height</th>
     <th>filesize</th>
+    <th>md5</th>
+    <th>history</th>
   </tr>
 <% @original_pictures.each do |original_picture| %>
   <div>
   </div>
   <tr>
     <td>
-      <%= link_to tag(:img, :src => original_picture.url, :width => 50, :height => 50), original_picture %>
+      <%= link_to tag(:img, original_picture.tmb_opt_img_tag), original_picture %>
     </td>
+    <td><%= original_picture.pictures.empty? ? '' : original_picture.history.first.revision %></td>
     <td><%= original_picture.filename %></td>
     <td><%= original_picture.width %></td>
     <td><%= original_picture.height %></td>
     <td><%= original_picture.filesize %></td>
+    <td><%= original_picture.md5 %></td>
+    <td><%= link_to '...', :controller => 'original_pictures', :action => :history, :id => original_picture.id %></td>
   </tr>
 <% end %>
 </table>