Permalink
Browse files

Make product name on admin/products#index clickable to go to edit for…

… that product
  • Loading branch information...
radar committed Apr 26, 2012
1 parent 1231b86 commit f2e9cc38c51fcad95e76c95260e1b9adf51cc830
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/app/views/spree/admin/products/index.html.erb
@@ -23,7 +23,7 @@
<% @collection.each do |product| %>
<tr <%= "style='color: red;'" if product.deleted? %> id="<%= spree_dom_id product %>" data-hook="admin_products_index_rows">
<td><%= product.sku rescue '' %></td>
<td><%= product.name rescue '' %></td>
<td><%= link_to product.try(:name), edit_admin_product_path(product) %></td>
<td><%= number_to_currency product.price rescue '' %></td>
<td class="actions" data-hook="admin_products_index_row_actions">
<%= link_to_edit product, :class => 'edit' unless product.deleted? %>

0 comments on commit f2e9cc3

Please sign in to comment.