-<h1>Listing licenses</h1>
+<h1><%= t '.title' -%></h1>
<table>
<tr>
- <th>id</th>
- <th>lg_id</th>
- <th>name</th>
- <th>caption</th>
- <th>url</th>
- <th>created_at</th>
- <th>updated_at</th>
+ <th><%= t_m 'License.id' -%></th>
+ <th><%= t_m 'License.license_group_id' -%></th>
+ <th><%= t_m 'License.name' -%></th>
+ <th><%= t_m 'License.caption' -%></th>
+ <th><%= t_m 'License.url' -%></th>
+ <th><%= t_m 'License.system_picture_id' -%></th>
+ <th><%= t_m 'License.credit_pictures' -%></th>
+ <th><%= t_m 'License.settings' -%></th>
+ <th><%= t_m 'License.created_at' -%></th>
+ <th><%= t_m 'License.updated_at' -%></th>
</tr>
-<% @licenses.each do |license| %>
- <tr>
- <td><%= link_to license.id, :action => :browse, :id => license.id %></td>
- <td><%= link_to license.license_group_id, :controller => 'license_groups', :action => :browse, :id => license.license_group_id %></td>
- <td><%= h license.name %></td>
- <td><%= h license.caption %></td>
- <td><%= h license.url %></td>
- <td><%= license.created_at %></td>
- <td><%= license.updated_at %></td>
- </tr>
-<% end -%>
+ <% @licenses.each do |license| %>
+ <tr>
+ <td><%= link_to license.id, :action => :browse, :id => license.id %></td>
+ <td><%= link_to license.license_group_id, :controller => 'license_groups', :action => :browse, :id => license.license_group_id %></td>
+ <td>
+ <%= h(truncate(license.name, :length => 16)) %>
+ </td>
+ <td>
+ <%= h(truncate(license.caption, :length => 16)) %>
+ </td>
+ <td>
+ <%= h(truncate(license.url, :length => 16)) %>
+ </td>
+ <td><%= link_to license.system_picture_id, :controller => 'system_pictures', :action => :browse, :id => license.system_picture_id %></td>
+ <td>
+ <%= h(truncate(license.credit_pictures, :length => 6)) %>
+ </td>
+ <td>
+ <%= h(truncate(license.settings, :length => 6)) %>
+ </td>
+ <td>
+ <%= l license.created_at %>
+ </td>
+ <td>
+ <%= l license.updated_at %>
+ </td>
+ </tr>
+ <% end -%>
</table>