Sha256: 6a4478fcc5dc4a79cafb2a0758ba8b04f89106d5df218d8d055bd4e13b1f0c93
Contents?: true
Size: 508 Bytes
Versions: 2
Compression:
Stored size: 508 Bytes
Contents
format :html do def labeled_badge count, label, opts={} haml :labeled_badge, badge_haml_opts(count, label, opts) end def badge_haml_opts count, label, opts process_badge_opts count, opts { count: count, label: label, klass: opts[:klass], color: opts[:color], title: opts[:title] } end def process_badge_opts count, opts if count.try(:zero?) && !opts[:zero_ok] opts[:klass] = [opts[:klass], "disabled-o"].compact.join " " end opts[:color] ||= "light" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
card-mod-bootstrap-0.18.1 | set/abstract/bs_badge.rb |
card-mod-bootstrap-0.18.0 | set/abstract/bs_badge.rb |