OSDN Git Service

d24737f87151f3954608fa3570f9f94f1d169049
[pettanr/pettanr.git] / app / views / original_pictures / show.html.erb
1 <h1><%= t '.title' -%></h1>
2 <%= render 'exist', :exist => Picture.exist_by_md5(@original_picture.md5, @original_picture.id) %>
3 <p id="notice"><%= notice %></p>
4
5 <table class="no-border">
6   <tr>
7     <td width="70%">
8       <%= link_to tag(:img, @original_picture.opt_img_tag), @original_picture.url %>
9
10       <p>
11         <b><%= t_m 'OriginalPicture.ext' -%>:</b>
12         <%= @original_picture.ext %>
13       </p>
14
15       <p>
16         <b><%= t_m 'OriginalPicture.width' -%>:</b>
17         <%= @original_picture.width %>
18       </p>
19
20       <p>
21         <b><%= t_m 'OriginalPicture.height' -%>:</b>
22         <%= @original_picture.height %>
23       </p>
24
25       <p>
26         <b><%= t_m 'OriginalPicture.filesize' -%>:</b>
27         <%= @original_picture.filesize %>
28       </p>
29
30       <p>
31         <b><%= t_m 'OriginalPicture.artist_id' -%>:</b>
32         <%= link_to h(@original_picture.artist.name), artist_path(@original_picture.artist) %>
33       </p>
34
35       <p>
36         <b><%= t_m 'OriginalPicture.created_at' -%>:</b>
37         <%= l @original_picture.created_at %>
38       </p>
39
40       <p>
41         <b><%= t_m 'OriginalPicture.updated_at' -%>:</b>
42         <%= l @original_picture.updated_at %>
43       </p>
44
45       <h2>
46         <%= t 'original_pictures.show.select_license' %>
47       </h2>
48       <p>
49         <%= button_to t('original_pictures.show.select'), {:controller => 'original_picture_license_groups', :action => :new, :original_picture_id => @original_picture.id} %>
50       </p>
51       <h2>
52         <%= t 'original_pictures.show.replace_picture' %>
53       </h2>
54       <%= form_for(@original_picture, :html => { :multipart => true }) do |f| %>
55         <%= f.file_field "file" %>
56         <div class="actions">
57           <%= f.submit t 'original_pictures.show.replace' %>
58         </div>
59       <% end %>
60       <h2>
61         <%= t 'link.destroy' %>
62       </h2>
63       <%= link_to t('link.destroy'), original_picture_path(@original_picture), :method => :delete %>
64     </td>
65     <td>
66       <h1>
67         <%= t 'original_pictures.show.history' %>
68       </h1>
69       <%= render 'history_list', :history => @original_picture.history %>
70     </td>
71   </tr>
72 </table>