Sha256: b36e4106e31b55ef6c6e9390720e95bee8881740b0b8a7085bb9ee4270bce261
Contents?: true
Size: 855 Bytes
Versions: 2
Compression:
Stored size: 855 Bytes
Contents
module StatusTag module MtmProfilePresenters class MeasurementStatusPresenter < Presenter ORDERED_CHOICES = [ StatusTag::Choice.new(name: "bad?", klass: "label-default-warning", text: "Bad Measure"), StatusTag::Choice.new(name: "good?", klass: "label-default-success", text: "Good Measure"), StatusTag::Choice.new(name: "waiting_approval?", klass: "label-default-important", text: "Pending Measure"), StatusTag::Choice.new(name: "on_hold?", klass: "label-default-warning", text: "On Hold"), StatusTag::Choice.new(name: "not_measured?", klass: "label-default-important", text: "Not Measured"), StatusTag::Choice.new(name: nil, klass: "label-default-warning", text: "Measure Unknown"), ] CSS_CLASS = [ "label", "label-default" ] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
status_tag-0.1.1 | mtm_profile_presenters/measurement_status_presenter.rb |
status_tag-0.1.0 | mtm_profile_presenters/measurement_status_presenter.rb |