OSDN Git Service

t#29174#28986:license gemnized
[pettanr/pettanr.git] / app / views / resource_pictures / list.html.erb
1 <h1>Listing resource_pictures</h1>
2
3 <table>
4   <tr>
5     <th>id</th>
6     <th>Ext</th>
7     <th>Width</th>
8     <th>Height</th>
9     <th>filesize</th>
10     <th>artist</th>
11     <th>license_id</th>
12     <th>original_picture_id</th>
13     <th>artist_name</th>
14     <th>classname</th>
15     <th>picture</th>
16     <th>created_at</th>
17     <th>updated_at</th>
18   </tr>
19 <% @resource_pictures.each do |resource_picture| %>
20   <tr>
21     <td><%= link_to resource_picture.id, :action => :browse, :id => resource_picture.id%></td>
22     <td><%= resource_picture.ext %></td>
23     <td><%= resource_picture.width %></td>
24     <td><%= resource_picture.height %></td>
25     <td><%= resource_picture.filesize %></td>
26     <td><%= link_to resource_picture.artist_id, :controller => 'artists', :action => :browse, :id => resource_picture.artist_id %></td>
27     <td><%= link_to resource_picture.license_id, :controller => 'licenses', :action => :browse, :id => resource_picture.license_id %></td>
28     <td><%= link_to resource_picture.original_picture_id, :controller => 'original_pictures', :action => :browse, :id => resource_picture.original_picture_id%></td>
29     <td><%= resource_picture.artist_name %></td>
30     <td><%= resource_picture.classname %></td>
31     <td><%= link_to resource_picture.picture_id, main_app.picture_path(resource_picture.picture_id) %></td>
32     <td><%= resource_picture.created_at %></td>
33     <td><%= resource_picture.updated_at %></td>
34   </tr>
35 <% end %>
36 </table>