Sha256: e124f91ceaa55e52b9ad2e5e25c18ebe88caea8705107ac385dc2f1df87bd4ea

Contents?: true

Size: 570 Bytes

Versions: 7

Compression:

Stored size: 570 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

7 entries across 7 versions & 1 rubygems

Version Path
phcdevworks_accounts_stripe-0.1.7 app/helpers/phcdevworks_accounts_stripe/application_helper.rb
phcdevworks_accounts_stripe-0.1.6 app/helpers/phcdevworks_accounts_stripe/application_helper.rb
phcdevworks_accounts_stripe-0.1.5 app/helpers/phcdevworks_accounts_stripe/application_helper.rb
phcdevworks_accounts_stripe-0.1.4 app/helpers/phcdevworks_accounts_stripe/application_helper.rb
phcdevworks_accounts_stripe-0.1.3 app/helpers/phcdevworks_accounts_stripe/application_helper.rb
phcdevworks_accounts_stripe-0.1.2 app/helpers/phcdevworks_accounts_stripe/application_helper.rb
phcdevworks_accounts_stripe-0.1.1 app/helpers/phcdevworks_accounts_stripe/application_helper.rb