OSDN Git Service

fix: fetch fail
[pettanr/pettanr.git] / app / views / scroll_panels / _footer.html.erb
index 56e9367..e68dace 100644 (file)
@@ -1,23 +1,26 @@
 <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 %>
+      <%= scroll_panel_icon(:object => scroll_panel, :size => 25) %>
+      <%= link_to author_icon(:object => scroll_panel.scroll.author, :size => 17), author_path(scroll_panel.scroll.author) %>
+      <%= l scroll_panel.updated_at %>
     </td>
     <td>
-      <% if story.own? author %>
-        <%= render 'order', :story => story %>
+      <% if scroll_panel.own? operators %>
+        <%= render 'scroll_panels/order', :scroll_panel => scroll_panel %>
       <% else %>
-        No.<%= story.t %>
+        No.<%= scroll_panel.t %>
       <% end %>
     </td>
+    <td>
+      <%= link_to tag(:img, {:src => '/images/remove.png', :width => Manifest.manifest.magic_numbers['thumbnail_width'] / 2, :height => Manifest.manifest.magic_numbers['thumbnail_height'] / 2}), scroll_panel, confirm: 'Are you sure?', :method => :delete %>
+    </td>
   </tr>
 </table>