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, ={}) [:class] ||= ["badge", "badge-#{status}"] content_tag(:span, label, ) end |