OSDN Git Service

w
[pettanr/pettanr.git] / app / views / licenses / browse.html.erb
index 97a995d..b9282c3 100644 (file)
@@ -1,42 +1,43 @@
-    <th>license_group_id</th>
-    <th>name</th>
-    <th>caption</th>
-    <th>url</th>
-    <th>system_picture_id</th>
-    <th>settings</th>
-<div>
+<h1><%= t '.title' -%></h1>
+
+<p>
+  <b><%= t_m 'License.id' -%>:</b>
+  <%= @license.id %>
+</p>
 <p>
-<div>id</div>
-<%= @license.id %>
+  <b><%= t_m 'License.license_group_id' -%>:</b>
+  <%= link_to @license.license_group_id, :controller => 'license_groups', :action => :browse, :id => @license.license_group_id %>
 </p>
 <p>
-<div>license_group_id</div>
-<%= h @license.license_group_id %>
+  <b><%= t_m 'License.name' -%>:</b>
+  <%= h @license.name %>
 </p>
 <p>
-<div>name</div>
-<%= h @license.name %>
+  <b><%= t_m 'License.caption' -%>:</b>
+  <%= h @license.caption %>
 </p>
 <p>
-<div>caption</div>
-<%= h @license.caption %>
+  <b><%= t_m 'License.url' -%>:</b>
+  <%= link_to h(@license.url), @license.url %>
 </p>
 <p>
-<div>url</div>
-<%= h @license.url %>
+  <b><%= t_m 'License.system_picture_id' -%>:</b>
+  <%= link_to @license.system_picture_id, :controller => 'system_pictures', :action => :browse, :id => @license.system_picture_id %>
 </p>
-<div>system_picture_id</div>
-<%= @license.system_picture_id %>
+<p>
+  <b><%= t_m 'License.credit_pictures' -%>:</b>
+  <%= @license.credit_pictures %>
 </p>
-<div>settings</div>
-<%= h @license.settings %>
+  <b><%= t_m 'License.settings' -%>:</b>
+  <%= h @license.settings %>
 </p>
 <p>
-<%= @license.created_at %>
+  <b><%= t_m 'License.created_at' -%>:</b>
+  <%= l @license.created_at %>
 </p>
 <p>
-<%= @license.updated_at %>
+  <b><%= t_m 'License.updated_at' -%>:</b>
+  <%= l @license.updated_at %>
 </p>
-</div>
 
-<%= link_to 'Back', :action => :list %>
+<%= link_to t('link.back'), :action => :list %>