OSDN Git Service

7df7b82d9d14011fee2f0c8c28fd34b2c690b43e
[pettanr/pettanr.git] / app / views / licenses / index.html.erb
1 <h1>Listing licenses</h1>
2
3 <table>
4   <tr>
5     <th>name</th>
6     <th>url</th>
7     <th>cc_by</th>
8     <th>cc_sa</th>
9     <th>cc_nd</th>
10     <th>cc_nc</th>
11     <th>no_resize</th>
12     <th>no_flip</th>
13     <th>no_convert</th>
14     <th>keep_aspect_ratio</th>
15     <th></th>
16   </tr>
17
18 <% @licenses.each do |license| %>
19   <tr>
20     <td><%= h license.name %></td>
21     <td><%= h license.url %></td>
22     <td><%= license.cc_by %></td>
23     <td><%= license.cc_sa %></td>
24     <td><%= license.cc_nd %></td>
25     <td><%= license.cc_nc %></td>
26     <td><%= license.no_resize %></td>
27     <td><%= license.no_flip %></td>
28     <td><%= license.no_convert %></td>
29     <td><%= license.keep_aspect_ratio %></td>
30     <td>
31       <% if license.common_license -%>
32         <%= link_to 'Show', license.common_license %>
33       <% else -%>
34         <%= link_to 'Show', license.original_license %>
35       <% end -%>
36     </td>
37   </tr>
38 <% end -%>
39 </table>
40 <%= link_to 'new original license', new_original_license_path %>