OSDN Git Service

t#32046:
[pettanr/pettanr.git] / app / views / stories / list.html.erb
index 6fae81c..99d5442 100644 (file)
@@ -4,7 +4,7 @@
   <tr>
     <th>id</th>
     <th>comic_id</th>
-    <th>panel_id</th>
+    <th>title</th>
     <th>t</th>
     <th>author_id</th>
     <th>created_at</th>
@@ -16,7 +16,7 @@
   <tr>
     <td><%= link_to story.id, :action => :browse, :id => story.id %></td>
     <td><%= story.comic_id %></td>
-    <td><%= story.panel_id %></td>
+    <td><%= h(truncate(h(story.title), :length => 10)) %></td>
     <td><%= story.t %></td>
     <td><%= link_to story.author_id, :controller => '/authors', :action => :browse, :id => story.author_id %></td>
     <td><%= story.created_at %></td>