OSDN Git Service

t#29796:update licensing views
[pettanr/pettanr.git] / app / views / licenses / list.html.erb
1 <h1>Listing licenses</h1>
2
3 <table>
4   <tr>
5     <th>id</th>
6     <th>license_group_id</th>
7     <th>name</th>
8     <th>caption</th>
9     <th>url</th>
10     <th>system_picture_id</th>
11     <th>settings</th>
12     <th>created_at</th>
13     <th>updated_at</th>
14   </tr>
15
16 <% @licenses.each do |license| %>
17   <tr>
18     <td><%= link_to license.id, :action => :browse, :id => license.id %></td>
19     <td><%= link_to license.license_group_id, :controller => 'license_groups', :action => :browse, :id => license.license_group_id %></td>
20     <td><%= h license.name %></td>
21     <td><%= h license.caption %></td>
22     <td><%= h license.url %></td>
23     <td><%= link_to license.system_picture_id, :controller => 'system_pictures', :action => :browse, :id => license.system_picture_id %></td>
24     <td><%= h license.settings %></td>
25     <td><%= license.created_at %></td>
26     <td><%= license.updated_at %></td>
27   </tr>
28 <% end -%>
29 </table>
30 <%= link_to 'new original license', new_original_license_path %>