OSDN Git Service

aaad718ca3ac83f5dfe27153ab768b6a7ed92cec
[pettanr/pettanr.git] / app / views / original_pictures / index.html.erb
1 <h1>Listing original_pictures</h1>
2
3 <%= render 'uploader' %>
4 <table>
5   <tr>
6     <th>picture</th>
7     <th>revisions</th>
8     <th>filename</th>
9     <th>Width</th>
10     <th>Height</th>
11     <th>filesize</th>
12     <th>md5</th>
13     <th>history</th>
14   </tr>
15 <% @original_pictures.each do |original_picture| %>
16   <div>
17   </div>
18   <tr>
19     <td>
20       <%= link_to tag(:img, original_picture.tmb_opt_img_tag), original_picture %>
21     </td>
22     <td><%= original_picture.pictures.empty? ? '' : original_picture.history.first.revision %></td>
23     <td><%= original_picture.filename %></td>
24     <td><%= original_picture.width %></td>
25     <td><%= original_picture.height %></td>
26     <td><%= original_picture.filesize %></td>
27     <td><%= original_picture.md5 %></td>
28     <td><%= link_to '...', :controller => 'original_pictures', :action => :history, :id => original_picture.id %></td>
29   </tr>
30 <% end %>
31 </table>
32 <%= link_to 'open form', new_original_picture_path, :remote => true %>
33   <div id="uploader">
34     uploader
35   </div>
36