Module: PhcdevworksAccountsStripe::ApplicationHelper
- Defined in:
- app/helpers/phcdevworks_accounts_stripe/application_helper.rb
Instance Method Summary collapse
-
#phcdev_invoice_status(status) ⇒ Object
PHCAccountsStripe - Invoice Status.
Instance Method Details
#phcdev_invoice_status(status) ⇒ Object
PHCAccountsStripe - Invoice Status
5 6 7 8 9 10 11 12 13 14 15 |
# File 'app/helpers/phcdevworks_accounts_stripe/application_helper.rb', line 5 def phcdev_invoice_status(status) colors = { 'draft' => 'badge badge-secondary', 'open' => 'badge-success', 'paid' => 'badge-green', 'uncollectible' => 'badge-danger', 'void' => 'badge-dark' } content_tag(:span, class: "badge #{colors[status]} badge-square") do end end |