OSDN Git Service

add files
[pettanr/pettanr.git] / app / views / lisences / list.html.erb
1 <h1>Listing lisences</h1>
2
3 <table>
4   <tr>
5     <th>id</th>
6     <th>name</th>
7     <th>url</th>
8     <th>cc_by</th>
9     <th>cc_sa</th>
10     <th>cc_nd</th>
11     <th>cc_nc</th>
12     <th>no_resize</th>
13     <th>no_flip</th>
14     <th>no_convert</th>
15     <th>keep_aspect_ratio</th>
16     <th>created_at</th>
17     <th>updated_at</th>
18     <th></th>
19   </tr>
20
21 <% @lisences.each do |lisence| %>
22   <tr>
23     <td><%= link_to lisence.id, :action => :browse, :id => lisence.id %></td>
24     <td><%= h lisence.name %></td>
25     <td><%= h lisence.url %></td>
26     <td><%= lisence.cc_by %></td>
27     <td><%= lisence.cc_sa %></td>
28     <td><%= lisence.cc_nd %></td>
29     <td><%= lisence.cc_nc %></td>
30     <td><%= lisence.no_resize %></td>
31     <td><%= lisence.no_flip %></td>
32     <td><%= lisence.no_convert %></td>
33     <td><%= lisence.keep_aspect_ratio %></td>
34     <td><%= lisence.created_at %></td>
35     <td><%= lisence.updated_at %></td>
36   </tr>
37 <% end -%>
38 </table>
39 <%= link_to 'new original lisence', new_original_lisence_path %>