OSDN Git Service

fix: bin tool
[pettanr/pettanr.git] / app / views / original_pictures / show.html.erb
1 <h1>
2   <%= link_to icon_tag('OriginalPicture'), original_picture_path(@item) %>
3   <%= t '.title' -%>
4   <%= link_to icon_tag('Prof'), original_picture_path(@item, :format => :prof) %>
5 </h1>
6
7 <%= render 'exist', :pictures => Picture.find_by_md5_without_original_picture(@item.md5, @item.id) %>
8 <p id="notice"><%= notice %></p>
9
10 <table class="no-border">
11   <tr>
12     <td width="70%">
13       <%= link_to tag(:img, @item.opt_img_tag), @item.url %>
14
15       <p>
16         <b><%= t 'original_pictures.index.status' -%>:</b>
17         <% case true %>
18         <% when  @item.unpublished? %>
19           <%= t('original_pictures.unpublished') %>
20         <% when  @item.unlicensed? %>
21           <%= t('original_pictures.unlicensed') %>
22         <% when  @item.stopped? %>
23           <%= t('original_pictures.stopped') %>
24         <% when  @item.published? %>
25           <%= t('original_pictures.published') %>
26         <% end %>
27       </p>
28
29       <p>
30         <b><%= t_m 'OriginalPicture.published_at' -%>:</b>
31         <% if @item.published_at %>
32           <%= l @item.published_at %>
33         <% end %>
34       </p>
35
36       <p>
37         <b><%= t_m 'OriginalPicture.stopped_at' -%>:</b>
38         <% if @item.stopped_at %>
39           <%= l @item.stopped_at %>
40         <% end %>
41       </p>
42
43       <p>
44         <b><%= t_m 'OriginalPicture.ext' -%>:</b>
45         <%= @item.ext %>
46       </p>
47
48       <p>
49         <b><%= t_m 'OriginalPicture.filesize' -%>:</b>
50         <%= @item.filesize %>
51       </p>
52
53       <p>
54         <b><%= t_m 'OriginalPicture.md5' -%>:</b>
55         <%= h(@item.md5) %>
56       </p>
57
58       <p>
59         <b><%= t_m 'OriginalPicture.created_at' -%>:</b>
60         <%= l @item.created_at %>
61       </p>
62
63       <p>
64         <b><%= t_m 'OriginalPicture.updated_at' -%>:</b>
65         <%= l @item.updated_at %>
66       </p>
67
68       <h2>
69         <%= t 'original_pictures.show.select_license' %>
70       </h2>
71       <p>
72         <%= button_to t('original_pictures.show.select'), {:controller => 'original_picture_license_groups', :action => :new, :original_picture_id => @item.id} %>
73       </p>
74       <h2>
75         <%= t 'original_pictures.show.replace_picture' %>
76       </h2>
77       <%= form_for(@item, :html => { :multipart => true }) do |f| %>
78         <%= f.file_field "file" %>
79         <div class="actions">
80           <%= f.submit t 'original_pictures.show.replace' %>
81         </div>
82       <% end %>
83       <h2>
84         <%= t 'link.destroy' %>
85       </h2>
86       <%= link_to t('link.destroy'), original_picture_path(@item), :method => :delete %>
87     </td>
88     <td>
89       <h1>
90         <%= t 'original_pictures.show.history' %>
91       </h1>
92       <%= render 'history_list', :history => @item.history %>
93     </td>
94   </tr>
95 </table>