OSDN Git Service

t#30102:update i18n color,sp,sbt
[pettanr/pettanr.git] / app / views / speech_balloon_templates / list.html.erb
index 175673d..07c9800 100644 (file)
@@ -1,28 +1,40 @@
-<h1>Listing speech_balloon_templates</h1>
-<table>
-  <tr>
-    <th>id</th>
-    <th>Name</th>
-    <th>classname</th>
-    <th>caption</th>
-    <th>t</th>
-    <th>created_at</th>
-    <th>updated_at</th>
-    <th></th>
-  </tr>
+<h1><%= t '.title' -%></h1>
 
-<% @speech_balloon_templates.each do |speech_balloon_template| %>
+<table>
   <tr>
-    <td><%= link_to speech_balloon_template.id, :action => :browse, :id => speech_balloon_template.id %></td>
-    <td><%= h speech_balloon_template.name %></td>
-    <td><%= h speech_balloon_template.classname %></td>
-    <td><%= h speech_balloon_template.caption %></td>
-    <td><%= speech_balloon_template.t %></td>
-    <td><%= speech_balloon_template.created_at %></td>
-    <td><%= speech_balloon_template.updated_at %></td>
-    <td>
-      <%= link_to 'Destroy', speech_balloon_template, confirm: 'Are you sure?', method: :delete %>
-    </td>
+    <th><%= t_m 'SpeechBalloonTemplate.id' -%></th>
+    <th><%= t_m 'SpeechBalloonTemplate.name' -%></th>
+    <th><%= t_m 'SpeechBalloonTemplate.classname' -%></th>
+    <th><%= t_m 'SpeechBalloonTemplate.caption' -%></th>
+    <th><%= t_m 'SpeechBalloonTemplate.t' -%></th>
+    <th><%= t_m 'SpeechBalloonTemplate.settings' -%></th>
+    <th><%= t_m 'SpeechBalloonTemplate.created_at' -%></th>
+    <th><%= t_m 'SpeechBalloonTemplate.updated_at' -%></th>
   </tr>
-<% end %>
+  <% @speech_balloon_templates.each do |speech_balloon_template| %>
+    <tr>
+      <td><%= link_to speech_balloon_template.id, browse_speech_balloon_template_path(speech_balloon_template) %></td>
+      <td>
+        <%= h(truncate(speech_balloon_template.name, :length => 16)) %>
+      </td>
+      <td>
+        <%= h(truncate(speech_balloon_template.classname, :length => 16)) %>
+      </td>
+      <td>
+        <%= h(truncate(speech_balloon_template.caption, :length => 16)) %>
+      </td>
+      <td>
+        <%= speech_balloon_template.t %>
+      </td>
+      <td>
+        <%= h(truncate(speech_balloon_template.settings, :length => 10)) %>
+      </td>
+      <td>
+        <%= l speech_balloon_template.created_at %>
+      </td>
+      <td>
+        <%= l speech_balloon_template.updated_at %>
+      </td>
+    </tr>
+  <% end -%>
 </table>