Module: Trestle::StatusHelper

Defined in:
app/helpers/trestle/status_helper.rb

Instance Method Summary collapse

Instance Method Details

#status_tag(label, status = :primary, options = {}) ⇒ Object


3
4
5
6
# File 'app/helpers/trestle/status_helper.rb', line 3

def status_tag(label, status=:primary, options={})
  options[:class] ||= ["badge", "badge-#{status}"]
  (:span, label, options)
end