<%= render :partial => 'spree/admin/shared/product_sub_menu' %>

<div class="toolbar" data-hook="toolbar">
  <ul class="actions">
    <li id="new_product_link">
      <%= button_link_to t(:new_product), new_object_url, {:remote => true, :icon => 'add', :id => 'admin_new_product'} %>
    </li>
  </ul>
  <br class="clear" />
</div>

<h1><%= t(:listing_products) %></h1>

<div id="new_product" data-hook></div>

<table class="index" id="listing_products">
  <tr data-hook="admin_products_index_headers">
    <th><%= t(:sku) %></th>
    <th><%= t(:name) %></th>
    <th><%= t('.in_stock') %></th>
  </tr>
<% @products.each do |product| %>
  <tr <%= "style='color: red;'" unless product.has_stock? %> id="<%= spree_dom_id product %>" data-hook="admin_products_index_rows">
    <td><%= product.sku rescue '' %></td>
    <td><%= link_to product.try(:name), edit_admin_product_path(product) %></td>
    <td><%= product.on_hand %></td>
  </tr>
<% end %>
</table>

<%= javascript_tag "$('#sub_nav > li:first-child').removeClass('selected')" %>
<%= render :partial => 'spree/admin/shared/product_sub_menu' %>

<div class="toolbar" data-hook="toolbar">
  <ul class="actions">
    <li id="new_product_link">
      <%= button_link_to t(:new_product), new_object_url, {:remote => true, :icon => 'add', :id => 'admin_new_product'} %>
    </li>
  </ul>
  <br class="clear" />
</div>

<h1><%= t(".stocks") %></h1>

<div id="new_product" data-hook></div>

<table class="index" id="listing_products">
  <tr data-hook="admin_products_index_headers">
    <th><%= t(:sku) %></th>
    <th><%= t(:name) %></th>
    <th><%= t('.in_stock') %></th>
  </tr>
<% @products.each do |product| %>
  <tr <%= "style='color: red;'" unless product.has_stock? %> id="<%= spree_dom_id product %>" data-hook="admin_products_index_rows">
    <td><%= product.sku rescue '' %></td>
    <td><%= link_to product.try(:name), edit_admin_product_path(product) %></td>
    <td><%= product.on_hand %></td>
  </tr>
<% end %>
</table>

<%= javascript_tag "$('#sub_nav > li:first-child').removeClass('selected')" %>
Fix the mistake in the view title
Fix the mistake in the view title
