OSDN Git Service

fix play leaf
[pettanr/pettanr.git] / app / views / original_pictures / _history_list.html.erb
index 8fd4c22..49d9f4b 100644 (file)
@@ -1,6 +1,14 @@
 <% history.each do |picture| -%>
-  <h3>revision:<%= picture.revision %></h3>
-  <div>licensed at <%= picture.created_at %></div>
-  <img src="<%= picture.url -%>">
-  <%= render picture.credit_template, :picture => picture %>
+  <h3><%= t_m 'Picture.revision' -%>:<%= link_to picture.revision, picture_path(picture) %></h3>
+  <div><%= t_m 'Picture.created_at' -%> <%= l picture.created_at %></div>
+  <table class="no-border">
+    <tr>
+      <td>
+        <%= link_to(tag(:img, picture.tmb_opt_img_tag), picture_path(picture.id)) -%>
+      </td>
+      <td>
+        <%= render picture.credit_template, :picture => picture %>
+      </td>
+    </tr>
+  </table>
 <% end -%>