mirror of
https://github.com/internetee/registry.git
synced 2025-08-03 16:32:04 +02:00
18 lines
No EOL
383 B
Ruby
18 lines
No EOL
383 B
Ruby
class Registrar::InvoiceStatusPresenter
|
|
include ActionView::Helpers::TagHelper
|
|
|
|
attr_reader :invoice
|
|
|
|
def initialize(invoice:)
|
|
@invoice = invoice
|
|
end
|
|
|
|
def display
|
|
case invoice.get_status_from_billing
|
|
when 'unpaid'
|
|
content_tag(:span, 'Unpaid', style: 'color: red;')
|
|
when 'paid'
|
|
content_tag(:span, 'Unpaid', style: 'color: red;')
|
|
end
|
|
end
|
|
end |