OSDN Git Service

56111b473f81ca7ed04260c885e10374d1122f1f
[pettanr/pettanr.git] / app / views / lisences / index.html.erb
1 <h1>Listing lisences</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>keep_aspect_ratio</th>
14     <th></th>
15   </tr>
16
17 <% @lisences.each do |lisence| %>
18   <tr>
19     <td><%= h lisence.name %></td>
20     <td><%= h lisence.url %></td>
21     <td><%= lisence.cc_by %></td>
22     <td><%= lisence.cc_sa %></td>
23     <td><%= lisence.cc_nd %></td>
24     <td><%= lisence.cc_nc %></td>
25     <td><%= lisence.no_resize %></td>
26     <td><%= lisence.no_flip %></td>
27     <td><%= lisence.keep_aspect_ratio %></td>
28     <td>
29       <% if lisence.common_lisence -%>
30         <%= link_to 'Show', lisence.common_lisence %>
31       <% else -%>
32         <%= link_to 'Show', lisence.original_lisence %>
33       <% end -%>
34     </td>
35   </tr>
36 <% end -%>
37 </table>
38 <%= link_to 'new original lisence', new_original_lisence_path %>