OSDN Git Service

w
[pettanr/pettanr.git] / app / views / license_groups / browse.html.erb
index ffd5af4..2cad490 100644 (file)
@@ -1,62 +1,32 @@
-<div>
-<p>
-<div>id</div>
-<%= @license_group.id %>
-</p>
+<h1><%= t '.title' -%></h1>
+
 <p>
-<%= h @license_group.name %>
+  <b><%= t_m 'LicenseGroup.id' -%>:</b>
+  <%= @license_group.id %>
 </p>
 <p>
-<div>name</div>
-<%= h @license_group.name %>
+  <b><%= t_m 'LicenseGroup.name' -%>:</b>
+  <%= h @license_group.name %>
 </p>
 <p>
-<div>classname</div>
-<%= h @license_group.classname %>
+  <b><%= t_m 'LicenseGroup.classname' -%>:</b>
+  <%= h @license_group.classname %>
 </p>
 <p>
-<div>caption</div>
-<%= h @license_group.caption %>
+  <b><%= t_m 'LicenseGroup.caption' -%>:</b>
+  <%= h @license_group.caption %>
 </p>
 <p>
-<div>url</div>
-<%= h @license_group.url %>
+  <b><%= t_m 'LicenseGroup.url' -%>:</b>
+  <%= link_to h(@license_group.url), @license_group.url %>
 </p>
 <p>
-<%= @license_group.created_at %>
+  <b><%= t_m 'LicenseGroup.created_at' -%>:</b>
+  <%= l @license_group.created_at %>
 </p>
 <p>
-<%= @license_group.updated_at %>
+  <b><%= t_m 'LicenseGroup.updated_at' -%>:</b>
+  <%= l @license_group.updated_at %>
 </p>
-</div>
-<h1>Listing licenses</h1>
-
-<table>
-  <tr>
-    <th>id</th>
-    <th>license_group_id</th>
-    <th>name</th>
-    <th>caption</th>
-    <th>url</th>
-    <th>system_picture_id</th>
-    <th>settings</th>
-    <th>created_at</th>
-    <th>updated_at</th>
-  </tr>
-
-<% @license_group.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><%= link_to license.system_picture_id, :controller => 'system_pictures', :action => :browse, :id => license.system_picture_id %></td>
-    <td><%= h license.settings %></td>
-    <td><%= license.created_at %></td>
-    <td><%= license.updated_at %></td>
-  </tr>
-<% end -%>
-</table>
 
-<%= link_to 'Back', :action => :list %>
+<%= link_to t('link.back'), :action => :list %>