Module: TbCheckout::Admin::TransactionsHelper
- Defined in:
- app/helpers/tb_checkout/admin/transactions_helper.rb
Instance Method Summary collapse
Instance Method Details
#tb_checkout_status_label_for_transaction(status) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'app/helpers/tb_checkout/admin/transactions_helper.rb', line 3 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 |