OSDN Git Service

w
[pettanr/pettanr.git] / app / views / licenses / list.html.erb
1 <h1><%= t '.title' -%></h1>
2
3 <table>
4   <tr>
5     <th><%= t_m 'License.id' -%></th>
6     <th><%= t_m 'License.license_group_id' -%></th>
7     <th><%= t_m 'License.name' -%></th>
8     <th><%= t_m 'License.caption' -%></th>
9     <th><%= t_m 'License.url' -%></th>
10     <th><%= t_m 'License.system_picture_id' -%></th>
11     <th><%= t_m 'License.credit_pictures' -%></th>
12     <th><%= t_m 'License.settings' -%></th>
13     <th><%= t_m 'License.created_at' -%></th>
14     <th><%= t_m 'License.updated_at' -%></th>
15   </tr>
16
17   <% @licenses.each do |license| %>
18     <tr>
19       <td><%= link_to license.id, :action => :browse, :id => license.id %></td>
20       <td><%= link_to license.license_group_id, :controller => 'license_groups', :action => :browse, :id => license.license_group_id %></td>
21       <td>
22         <%= h(truncate(license.name, :length => 16)) %>
23       </td>
24       <td>
25         <%= h(truncate(license.caption, :length => 16)) %>
26       </td>
27       <td>
28         <%= h(truncate(license.url, :length => 16)) %>
29       </td>
30       <td><%= link_to license.system_picture_id, :controller => 'system_pictures', :action => :browse, :id => license.system_picture_id %></td>
31       <td>
32         <%= h(truncate(license.credit_pictures, :length => 6)) %>
33       </td>
34       <td>
35         <%= h(truncate(license.settings, :length => 6)) %>
36       </td>
37       <td>
38         <%= l license.created_at %>
39       </td>
40       <td>
41         <%= l license.updated_at %>
42       </td>
43     </tr>
44   <% end -%>
45 </table>