OSDN Git Service

t#29796:update licensing views
[pettanr/pettanr.git] / app / views / original_pictures / show.html.erb
1 <h1>
2 Original Picture
3 </h1>
4 <%= render 'exist', :exist => Picture.exist_by_md5(@original_picture.md5, @original_picture.id) %>
5 <p id="notice"><%= notice %></p>
6
7 <table class="no-border">
8   <tr>
9     <td width="70%">
10       <b>Ext:</b>
11       <%= @original_picture.ext %>
12       <b>Width:</b>
13       <%= @original_picture.width %>
14       <b>Height:</b>
15       <%= @original_picture.height %>
16       <b>filesize:</b>
17       <%= @original_picture.filesize %>
18
19       <p>
20         <b>md5:</b>
21         <%= @original_picture.md5 %>
22       </p>
23
24       <p>
25         <b>artist:</b>
26         <%= @original_picture.artist_id %>
27       </p>
28
29       <img src="<%= @original_picture.url -%>">
30
31       <h2>
32       <%= link_to 'Select License', :controller => 'original_picture_license_groups', :action => :new, :original_picture_id => @original_picture.id %>
33       </h2>
34       <p>
35       Replace picture
36       </p>
37       <%= form_for(@original_picture, :html => { :multipart => true }) do |f| %>
38         <label for="file">File to Upload</label> <%= f.file_field "file" %>
39         <div class="actions">
40           <%= f.submit 'replace' %>
41         </div>
42       <% end %>
43     </td>
44     <td>
45       <h1>
46         History
47       </h1>
48       <%= render 'history_list', :history => @original_picture.history %>
49     </td>
50   </tr>
51   </table>
52
53 <%= link_to 'Back', original_pictures_path %>