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

Version Path
tb_checkout-1.1.1 app/helpers/tb_checkout/admin/carts_helper.rb
tb_checkout-1.1.0 app/helpers/tb_checkout/admin/carts_helper.rb
tb_checkout-1.0.7 app/helpers/tb_checkout/admin/carts_helper.rb
tb_checkout-1.0.6 app/helpers/tb_checkout/admin/carts_helper.rb
tb_checkout-1.0.5 app/helpers/tb_checkout/admin/carts_helper.rb
tb_checkout-1.0.4 app/helpers/tb_checkout/admin/carts_helper.rb
tb_checkout-1.0.3 app/helpers/tb_checkout/admin/carts_helper.rb