OSDN Git Service

add: resource_picture_pictures
[pettanr/pettanr.git] / app / views / resource_picture_pictures / show.html.erb
diff --git a/app/views/resource_picture_pictures/show.html.erb b/app/views/resource_picture_pictures/show.html.erb
new file mode 100644 (file)
index 0000000..d0e1aac
--- /dev/null
@@ -0,0 +1,31 @@
+<h1>
+  <%= link_to icon_tag('ResourcePicturePicture'), resource_picture_picture_path(@item) %>
+  <%= t '.title' -%>
+  <%= link_to icon_tag('Prof'), resource_picture_picture_path(@item, :format => :prof) %>
+</h1>
+
+
+<%= link_to tag(:img, @item.opt_img_tag), @item.url %>
+
+<%= render @item.full_credit_template, :picture => @item %>
+
+<p>
+  <b><%= t_m 'ResourcePicture.ext' -%>:</b>
+  <%= @item.ext %>
+</p>
+
+<p>
+  <b><%= t_m 'ResourcePicture.filesize' -%>:</b>
+  <%= @item.filesize %>
+</p>
+
+<p>
+  <b><%= t_m 'ResourcePicture.created_at' -%>:</b>
+  <%= l @item.created_at %>
+</p>
+
+<p>
+  <b><%= t_m 'ResourcePicture.updated_at' -%>:</b>
+  <%= l @item.updated_at %>
+</p>
+