Sha256: 160fb326529b101fba7b60e033095868c18d4f81c7c574bacf908f0a8a2f38c8
Contents?: true
Size: 379 Bytes
Versions: 7
Compression:
Stored size: 379 Bytes
Contents
module TbCheckout::Admin::CartsHelper def tb_checkout_status_label_for_cart(cart) if cart.is_completed? content_tag :span, 'Complete', :class => 'label label-success' elsif cart.is_abandoned? content_tag :span, 'Abandoned', :class => 'label label-inverse' else content_tag :span, 'In Progress', :class => 'label label-warning' end end end
Version data entries
7 entries across 7 versions & 1 rubygems