Sha256: fa56e11ef86d65b044f9b93e8326cf5c050e67f382c3aca62f1b60fe989a811d

Contents?: true

Size: 301 Bytes

Versions: 13

Compression:

Stored size: 301 Bytes

Contents

module Spurs
  module Badge
    module Helper
      def spurs_badge(content, options={})
        class_str ="badge"
        if options[:type]
          class_str.concat(" badge-#{options[:type]}")
        end
        content_tag(:span,content.html_safe,:class => class_str)
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
spurs-0.0.6.rc2 lib/spurs/badge.rb
spurs-0.0.6.rc1 lib/spurs/badge.rb
spurs-0.0.5 lib/spurs/badge.rb
spurs-0.0.5.alpha.7 lib/spurs/badge.rb
spurs-0.0.5.alpha.6 lib/spurs/badge.rb
spurs-0.0.5.alpha.5 lib/spurs/badge.rb
spurs-0.0.5.alpha.4 lib/spurs/badge.rb
spurs-0.0.5.alpha.3 lib/spurs/badge.rb
spurs-0.0.5.alpha.2 lib/spurs/badge.rb
spurs-0.0.5.alpha.1 lib/spurs/badge.rb
spurs-0.0.4 lib/spurs/badge.rb
spurs-0.0.3 lib/spurs/badge.rb
spurs-0.0.2 lib/spurs/badge.rb