Sha256: bf1844564701486fdc1f27402592c49d9987675d567e16597d1efb21955136df

Contents?: true

Size: 206 Bytes

Versions: 12

Compression:

Stored size: 206 Bytes

Contents

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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
trestle-0.10.0 app/helpers/trestle/status_helper.rb
trestle-0.10.0.pre2 app/helpers/trestle/status_helper.rb
trestle-0.10.0.pre app/helpers/trestle/status_helper.rb
trestle-0.9.8 app/helpers/trestle/status_helper.rb
trestle-0.9.7 app/helpers/trestle/status_helper.rb
trestle-0.9.6 app/helpers/trestle/status_helper.rb
trestle-0.9.5 app/helpers/trestle/status_helper.rb
trestle-0.9.4 app/helpers/trestle/status_helper.rb
trestle-0.9.3 app/helpers/trestle/status_helper.rb
trestle-0.9.2 app/helpers/trestle/status_helper.rb
trestle-0.9.1 app/helpers/trestle/status_helper.rb
trestle-0.9.0 app/helpers/trestle/status_helper.rb