Sha256: 0bf758f6bead4df9ab031a09ac2465314b78824908ca9a22d1704bea6cbe2cf3

Contents?: true

Size: 588 Bytes

Versions: 8

Compression:

Stored size: 588 Bytes

Contents

module PhcdevworksAccountsStripe
    module ApplicationHelper

        # PHCAccountsStripe - Invoice Status
        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

    end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
phcdevworks_accounts_stripe-1.1.1 app/helpers/phcdevworks_accounts_stripe/application_helper.rb
phcdevworks_accounts_stripe-1.1.0 app/helpers/phcdevworks_accounts_stripe/application_helper.rb
phcdevworks_accounts_stripe-1.0.4 app/helpers/phcdevworks_accounts_stripe/application_helper.rb
phcdevworks_accounts_stripe-1.0.3 app/helpers/phcdevworks_accounts_stripe/application_helper.rb
phcdevworks_accounts_stripe-1.0.2 app/helpers/phcdevworks_accounts_stripe/application_helper.rb
phcdevworks_accounts_stripe-1.0.1 app/helpers/phcdevworks_accounts_stripe/application_helper.rb
phcdevworks_accounts_stripe-1.0.0 app/helpers/phcdevworks_accounts_stripe/application_helper.rb
phcdevworks_accounts_stripe-0.2.0 app/helpers/phcdevworks_accounts_stripe/application_helper.rb