OSDN Git Service

classname rename to module_name
[pettanr/pettanr.git] / app / views / system_pictures / show.html.erb
index a48ef44..df698c2 100644 (file)
@@ -1,48 +1,12 @@
-<p id="notice"><%= notice %></p>
+<%= link_to tag(:img, @item.opt_img_tag), @item.url %>
 
 <p>
-  <b>Ext:</b>
-  <%= @original_picture.ext %>
+  <b><%= t_m 'SystemPicture.created_at' -%>:</b>
+  <%= l @item.created_at %>
 </p>
 
 <p>
-  <b>Width:</b>
-  <%= @original_picture.width %>
+  <b><%= t_m 'SystemPicture.updated_at' -%>:</b>
+  <%= l @item.updated_at %>
 </p>
 
-<p>
-  <b>Height:</b>
-  <%= @original_picture.height %>
-</p>
-
-<p>
-  <b>filesize:</b>
-  <%= @original_picture.filesize %>
-</p>
-
-<p>
-  <b>artist:</b>
-  <%= @original_picture.artist_id %>
-</p>
-
-<img src="<%= @original_picture.url -%>">
-
-<p>
-<a href="<%= @original_picture.url %>">browse picture</a> 
-</p>
-<p>
-<%= link_to '再生成', :action => :refresh, :id => @original_picture.id %>
-</p>
-<% if @original_picture.own? current_author -%>
-<p>
-Replace picture
-</p>
-  <%= form_for(@original_picture, :html => { :multipart => true }) do |f| %>
-    <label for="file">File to Upload</label> <%= f.file_field "file" %>
-    <div class="actions">
-      <%= f.submit 'replace' %>
-    </div>
-  <% end %>
-<% end -%>
-
-<%= link_to 'Back', original_pictures_path %>