Commit 2484c6d4

mo khan <mo@mokhan.ca>
2014-10-13 21:19:22
add button to open detail link on amazon.
1 parent 585c2fa
Changed files (1)
app
views
admin
app/views/admin/products/_index.html.erb
@@ -4,8 +4,9 @@
     <tr>
       <td><%= link_to product.asin, admin_product_path(product.asin) %></td>
       <td>
-        <%= link_to product.item_attributes.title, product.detail_page_url %> is made by <%= product.item_attributes.manufacturer %> in category <%= product.item_attributes.product_group %>
+        <%= link_to product.item_attributes.title, admin_product_path(product.asin) %> is made by <%= product.item_attributes.manufacturer %> in category <%= product.item_attributes.product_group %>
       </td>
+      <td> <%= link_to 'View on Amazon', product.detail_page_url, class: 'btn', target: "_blank" %> </td>
     </tr>
   <% end %>
   </tbody>