Skip to content

Commit

Permalink
removed url_options_authenticate? which has been removed, localized t…
Browse files Browse the repository at this point in the history
…he list item label, and added missing hooks file
  • Loading branch information
drefined authored and romul committed Nov 11, 2010
1 parent 1d09e06 commit 889d995
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
7 changes: 3 additions & 4 deletions app/views/admin/shared/_vp_product_tab.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<% if url_options_authenticate?(:controller => 'admin/taxons') %>
<li <%= ' class="active"' if current == "Volume Pricing" %>>
<%= link_to("Volume Pricing", volume_prices_admin_product_variant_url(@product, @product.master)) %>
<li<%= ' class="active"' if current == "Volume Pricing" %>>
<%= link_to t("volume_pricing"), volume_prices_admin_product_variant_url(@product, @product.master) %>
</li>
<% end %>

3 changes: 2 additions & 1 deletion config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ en:
add_volume_price: Add Volume Price
position: Position
range: Range
volume_prices: Volume Prices
volume_prices: Volume Prices
volume_pricing: Volume Pricing
1 change: 1 addition & 0 deletions lib/spree_volume_pricing.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
require 'spree_core'
require 'spree_volume_pricing'
require 'spree_volume_pricing_hooks'
require 'spree_volume_pricing/engine'


0 comments on commit 889d995

Please sign in to comment.