Sha256: 1bf978a7a7e30c44812bf317d53179e1bb902a46a505eb37164ffcbb792dd917

Contents?: true

Size: 623 Bytes

Versions: 23

Compression:

Stored size: 623 Bytes

Contents

module C80Yax
  module UomHelper

    # на вход подаётся Uom
    # выдать оформленную html строку, которая содержит единицу измерения
    def pretty_uom_print(uom)
      return '' if uom.nil?
      str = uom.title
      pretty_uom_print_title(str)
    end

    # на вход подаётся строка
    # выдать оформленную html строку, которая содержит единицу измерения
    def pretty_uom_print_title(str)
      " (<span class='c80_md_link_color'>#{str}</span>)".html_safe
    end

  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
c80_yax-0.1.0.25 app/helpers/c80_yax/uom_helper.rb
c80_yax-0.1.0.24 app/helpers/c80_yax/uom_helper.rb
c80_yax-0.1.0.23 app/helpers/c80_yax/uom_helper.rb
c80_yax-0.1.0.22 app/helpers/c80_yax/uom_helper.rb
c80_yax-0.1.0.21 app/helpers/c80_yax/uom_helper.rb
c80_yax-0.1.0.20 app/helpers/c80_yax/uom_helper.rb
c80_yax-0.1.0.18 app/helpers/c80_yax/uom_helper.rb
c80_yax-0.1.0.17 app/helpers/c80_yax/uom_helper.rb
c80_yax-0.1.0.16 app/helpers/c80_yax/uom_helper.rb
c80_yax-0.1.0.15 app/helpers/c80_yax/uom_helper.rb
c80_yax-0.1.0.14 app/helpers/c80_yax/uom_helper.rb
c80_yax-0.1.0.13 app/helpers/c80_yax/uom_helper.rb
c80_yax-0.1.0.12 app/helpers/c80_yax/uom_helper.rb
c80_yax-0.1.0.11 app/helpers/c80_yax/uom_helper.rb
c80_yax-0.1.0.10 app/helpers/c80_yax/uom_helper.rb
c80_yax-0.1.0.9 app/helpers/c80_yax/uom_helper.rb
c80_yax-0.1.0.8 app/helpers/c80_yax/uom_helper.rb
c80_yax-0.1.0.7 app/helpers/c80_yax/uom_helper.rb
c80_yax-0.1.0.6 app/helpers/c80_yax/uom_helper.rb
c80_yax-0.1.0.5 app/helpers/c80_yax/uom_helper.rb