Sha256: 93719e3adc121c50d6e16be8cd4c697caa5af61e91fedbbdb7fa27de50a8a2d2

Contents?: true

Size: 247 Bytes

Versions: 6

Compression:

Stored size: 247 Bytes

Contents

module Gaku::CountHelper

  def count_div(html_class, &block)
    content_tag :h4, class: "mt-xs mb-0 #{html_class}" do
      block.call
    end
  end

  def print_count(count, text)
    count != 0 ? text + '(' + count.to_s + ')' : text
  end

end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
gaku_core-0.0.3 app/helpers/gaku/count_helper.rb
gaku-0.0.3 core/app/helpers/gaku/count_helper.rb
gaku-0.0.2 core/app/helpers/gaku/count_helper.rb
gaku_core-0.0.2 app/helpers/gaku/count_helper.rb
gaku-0.0.1 core/app/helpers/gaku/count_helper.rb
gaku_core-0.0.1 app/helpers/gaku/count_helper.rb