OSDN Git Service

8411ea1ec4fd0abe83fb96aaa023f84dfe73a4eb
[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>filename</th>
8     <th>Width</th>
9     <th>Height</th>
10     <th>filesize</th>
11   </tr>
12 <% @original_pictures.each do |original_picture| %>
13   <div>
14   </div>
15   <tr>
16     <td>
17       <%= link_to tag(:img, :src => original_picture.url, :width => 50, :height => 50), original_picture %>
18     </td>
19     <td><%= original_picture.filename %></td>
20     <td><%= original_picture.width %></td>
21     <td><%= original_picture.height %></td>
22     <td><%= original_picture.filesize %></td>
23   </tr>
24 <% end %>
25 </table>
26 <%= link_to 'open form', new_original_picture_path, :remote => true %>
27   <div id="uploader">
28     uploader
29   </div>
30