OSDN Git Service

t#32025:comic rename
[pettanr/pettanr.git] / app / views / scroll_panels / _footer.html.erb
index 56e9367..a72fb75 100644 (file)
@@ -1,22 +1,22 @@
 <table class="no-border" style="margin: 0px; padding: 0px; width=100%">
   <tr>
     <td>
-      <% if story.panel -%>
-        <%= link_to panel_icon(:object => story.panel, :size => 25), panel_path(story.panel) %>
-        <%= link_to author_icon(:object => story.panel.author, :size => 17), author_path(story.panel.author) %>
-        <%= distance_of_time_in_words_to_now story.panel.updated_at %>
+      <% if scroll_panel.panel -%>
+        <%= link_to panel_icon(:object => scroll_panel.panel, :size => 25), panel_path(scroll_panel.panel) %>
+        <%= link_to author_icon(:object => scroll_panel.panel.author, :size => 17), author_path(scroll_panel.panel.author) %>
+        <%= distance_of_time_in_words_to_now scroll_panel.panel.updated_at %>
       <% end %>
     </td>
     <td>
-      <%= link_to story_icon(:object => story, :size => 25), story_path(story) %>
-      <%= link_to author_icon(:object => story.author, :size => 17), author_path(story.author) %>
-      <%= l story.updated_at %>
+      <%= link_to scroll_panel_icon(:object => scroll_panel, :size => 25), scroll_panel_path(scroll_panel) %>
+      <%= link_to author_icon(:object => scroll_panel.author, :size => 17), author_path(scroll_panel.author) %>
+      <%= l scroll_panel.updated_at %>
     </td>
     <td>
-      <% if story.own? author %>
-        <%= render 'order', :story => story %>
+      <% if scroll_panel.own? author %>
+        <%= render 'order', :scroll_panel => scroll_panel %>
       <% else %>
-        No.<%= story.t %>
+        No.<%= scroll_panel.t %>
       <% end %>
     </td>
   </tr>