Sha256: d96a61f116c5c285e558d6fa6cafb69faf2f8543cc1c169f0533494f023b42ba
Contents?: true
Size: 398 Bytes
Versions: 1
Compression:
Stored size: 398 Bytes
Contents
Spree::BaseHelper.module_eval do def link_to_cart(text = t('cart')) #return "" if current_page?(cart_path) #css_class = nil if current_order.nil? or current_order.line_items.empty? text = "#{text}" css_class = 'empty' else text = "#{text} (#{current_order.item_count})" css_class = 'full' end link_to text, cart_path, :class => css_class end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
synergy_default_theme-1.0.0 | app/helpers/base_helper_decorator.rb |