OSDN Git Service

t#31291:add stories index
[pettanr/pettanr.git] / app / views / stories / _list_item.html.erb
index 0d3eacf..1b18f0f 100644 (file)
@@ -1,26 +1,28 @@
-<table class="no-border" style="margin: 0px; padding: 0px; width=100%">
   <tr>
     <td>
-      <div>
-        <%= link_to comic_icon(:object => story.comic, :size => 25), comic_path(story.comic) %>
-        <%= link_to h(story.comic.title), :controller => 'stories', :action => :comic, :id => story.comic.id %>
-      </div>
+      <%= link_to comic_icon(:object => story.comic, :size => 25), comic_path(story.comic) %>
+    </td>
+    <td>
+      <%= link_to h(story.comic.title), :controller => 'stories', :action => :comic, :id => story.comic.id %>
+    </td>
+    <td>
       <%= link_to author_icon(:object => story.comic.author, :size => 17), author_path(story.comic.author) %>
     </td>
     <td>
-      <div>
-        <%= link_to story_icon(:object => story, :size => 25), story_path(story) %>
-        <%= link_to author_icon(:object => story.author, :size => 17), author_path(story.author) %>
-      </div>
-      <div>
-        No.<%= story.t %>
-        <%= l story.updated_at %>
-      </div>
+      <%= link_to story_icon(:object => story, :size => 25), story_path(story) %>
+    </td>
+    <td>
+      <%= link_to author_icon(:object => story.author, :size => 17), author_path(story.author) %>
+    </td>
+    <td>
+      No.<%= story.t %>
+    </td>
+    <td>
+      <%= l story.updated_at %>
     </td>
     <td>
       <% if story.panel %>
-        <%= render 'panels/standard', :panel => story.panel, :author => @author %>
+        <%= h story.panel.caption %>
       <% end %>
     </td>
   </tr>
-</table>