OSDN Git Service

Merge branch 'v06' of git.sourceforge.jp:/gitroot/pettanr/pettanr into v06
[pettanr/pettanr.git] / app / views / resource_pictures / show.html.erb
index 0839b2d..2efb406 100644 (file)
@@ -1,11 +1,45 @@
-<p id="notice"><%= notice %></p>
-<%= render @resource_picture.credit_template, :picture => @resource_picture %>
+<h1>
+  <%= link_to icon_tag('ResourcePicture'), resource_picture_path(@item) %>
+  <%= t '.title' -%>
+  <%= link_to icon_tag('Prof'), resource_picture_path(@item, :format => :prof) %>
+</h1>
 <p>
-  <a href="<%= @resource_picture.url %>">ノーマル</a> 
-  <img src="<%= @resource_picture.url -%>">
+  <b><%= t_m 'ResourcePicture.artist_id' -%>:</b>
+  <%= link_to h(@item.artist.name), artist_path(@item.artist) %>
 </p>
+
+
+<%= link_to tag(:img, @item.opt_img_tag), @item.url %>
+
+<%= render @item.full_credit_template, :picture => @item %>
+
 <p>
-  <a href="<%= @resource_picture.url :thumbnail%>">サムネ</a> 
-  <img src="<%= @resource_picture.url :full -%>">
+  <b><%= t_m 'ResourcePicture.ext' -%>:</b>
+  <%= @item.ext %>
 </p>
-<%= link_to 'Back', resource_pictures_path %>
+
+<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>
+
+<% if @item.own? @operators -%>
+  <h3><%= t('editor') -%></h3>
+  <p id="notice"><%= notice %></p>
+  
+  <p>
+    <%= link_to t('original_pictures.show.replace'), edit_original_picture_path(@item.original_picture) %>
+    <%= link_to t('original_pictures.show.title'), original_picture_path(@item.original_picture) %>
+    <%= link_to t('original_pictures.index.stop'), resource_picture_path(@item), :method => :delete %>
+  </p>
+<% end -%>