Module: StatusIndicatorHelper

Defined in:
app/helpers/status_indicator_helper.rb

Instance Method Summary collapse

Instance Method Details

#status_indicator(record) ⇒ Object



2
3
4
5
6
# File 'app/helpers/status_indicator_helper.rb', line 2

def status_indicator(record)
  (:span, '',
    class: "status-indicator status-indicator--#{record.status}",
    title: "Page status: #{t(record.status, scope: [:forest, :admin, record.model_name.singular, :status])}")
end