OSDN Git Service

w
[pettanr/pettanr.git] / app / views / scroll_panels / _list_item.html.erb
index 1b18f0f..96125c5 100644 (file)
@@ -1,28 +1,28 @@
   <tr>
     <td>
-      <%= link_to comic_icon(:object => story.comic, :size => 25), comic_path(story.comic) %>
+      <%= link_to scroll_icon(:object => scroll_panel.scroll, :size => 25), scroll_path(scroll_panel.scroll) %>
     </td>
     <td>
-      <%= link_to h(story.comic.title), :controller => 'stories', :action => :comic, :id => story.comic.id %>
+      <%= link_to h(scroll_panel.scroll.title), play_scroll_path(scroll_panel.scroll) %>
     </td>
     <td>
-      <%= link_to author_icon(:object => story.comic.author, :size => 17), author_path(story.comic.author) %>
+      <%= link_to author_icon(:object => scroll_panel.scroll.author, :size => 17), author_path(scroll_panel.scroll.author) %>
     </td>
     <td>
-      <%= link_to story_icon(:object => story, :size => 25), story_path(story) %>
+      <%= link_to scroll_panel_icon(:object => scroll_panel, :size => 25), scroll_panel_path(scroll_panel) %>
     </td>
     <td>
-      <%= link_to author_icon(:object => story.author, :size => 17), author_path(story.author) %>
+      <%= link_to author_icon(:object => scroll_panel.author, :size => 17), author_path(scroll_panel.author) %>
     </td>
     <td>
-      No.<%= story.t %>
+      No.<%= scroll_panel.t %>
     </td>
     <td>
-      <%= l story.updated_at %>
+      <%= l scroll_panel.updated_at %>
     </td>
     <td>
-      <% if story.panel %>
-        <%= h story.panel.caption %>
+      <% if scroll_panel.panel %>
+        <%= h scroll_panel.panel.caption %>
       <% end %>
     </td>
   </tr>