-<h1>Listing licenses</h1>
-
+<h1><%= t '.title' -%></h1>
<table>
<tr>
- <th>name</th>
- <th>url</th>
- <th>cc_by</th>
- <th>cc_sa</th>
- <th>cc_nd</th>
- <th>cc_nc</th>
- <th>no_resize</th>
- <th>no_flip</th>
- <th>no_convert</th>
- <th>keep_aspect_ratio</th>
- <th></th>
+ <th><%= t_m 'License.caption' -%></th>
+ <th><%= t_m 'License.license_group_id' -%></th>
</tr>
-
-<% @licenses.each do |license| %>
- <tr>
- <td><%= h license.name %></td>
- <td><%= h license.url %></td>
- <td><%= license.cc_by %></td>
- <td><%= license.cc_sa %></td>
- <td><%= license.cc_nd %></td>
- <td><%= license.cc_nc %></td>
- <td><%= license.no_resize %></td>
- <td><%= license.no_flip %></td>
- <td><%= license.no_convert %></td>
- <td><%= license.keep_aspect_ratio %></td>
- <td>
- <% if license.common_license -%>
- <%= link_to 'Show', license.common_license %>
- <% else -%>
- <%= link_to 'Show', license.original_license %>
- <% end -%>
- </td>
- </tr>
-<% end -%>
+ <% @licenses.each do |license| %>
+ <tr>
+ <td>
+ <%= link_to t('link.marker'), license_path(license) %>
+ <%= link_to h(license.caption), license.url %>
+ </td>
+ <td>
+ <%= link_to h(license.license_group.caption), license_group_path(license.license_group) %>
+ </td>
+ </tr>
+ <% end -%>
</table>
-<%= link_to 'new original license', new_original_license_path %>