OSDN Git Service

w
[pettanr/pettanr.git] / app / views / comics / _list_item.html.erb
index 1bf947a..73ff51e 100644 (file)
@@ -1,14 +1,15 @@
 <tr>
   <td>
+    <%= link_to item_tag, comic_path(comic, :format => :prof) %>
     <%= link_to comic_icon(:object => comic, :size => 25), comic_path(comic) %>
-    <%= link_to h(truncate(comic.title, :length => 40)), :controller => 'stories', :action => :comic, :id => comic.id %>
+    <%= link_to h(truncate(comic.title, :length => 40)), comic_path(comic) %>
     (<%= comic.stories.size -%>)
   </td>
   <td>
     <%= distance_of_time_in_words_to_now comic.updated_at %>
   </td>
   <td>
-    <%= link_to author_icon(:object => comic.author, :size => 25), comic_path(comic.author) %>
+    <%= link_to author_icon(:object => comic.author, :size => 25), author_path(comic.author) %>
     <%= link_to h(truncate(comic.author.name, :length => 12)), author_path(comic.author) %>
   </td>
   <td>
@@ -18,3 +19,8 @@
     <% end %>
   </td>
 </tr>
+<tr>
+  <td colspan="4">
+    <%= h(truncate(comic.description, :length => 40)) %>
+  </td>
+</tr>