Sha256: 311afa05b2718a349e268fef2f979ec382d4d460530ff7be04d18a6758220c55
Contents?: true
Size: 395 Bytes
Versions: 3
Compression:
Stored size: 395 Bytes
Contents
module TbCheckout::Admin::TransactionsHelper def tb_checkout_status_label_for_transaction(status) if status == 'captured' cls = 'success' elsif status == 'fail' cls = 'danger' elsif status == 'refunded' || status == 'voided' cls = 'warning' else cls = 'default' end content_tag :span, status.titleize, :class => "label label-#{cls}" end end
Version data entries
3 entries across 3 versions & 1 rubygems