OSDN Git Service

fix: fetch fail
[pettanr/pettanr.git] / app / views / scroll_panels / _footer.html.erb
index db6ef89..e68dace 100644 (file)
@@ -8,16 +8,19 @@
       <% end %>
     </td>
     <td>
-      <%= 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) %>
+      <%= 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 scroll_panel.own? author %>
+      <% if scroll_panel.own? operators %>
         <%= render 'scroll_panels/order', :scroll_panel => scroll_panel %>
       <% else %>
         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>