Sha256: 1c1edddf491d327e2832bc9b936c0d7d68660687c868e843de25287731c5e81d

Contents?: true

Size: 319 Bytes

Versions: 36

Compression:

Stored size: 319 Bytes

Contents

module PushType
  module AdminHelper

    def title(page_title)
      content_for :title, page_title.to_s
    end

    def ficon(kind, label = nil, opts = {})
      opts.merge! class: 'fi-' + kind.to_s.gsub(/_/, '-')
      el = content_tag :i, nil, opts
      [el, label].compact.join(' ').html_safe
    end

  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
push_type_admin-0.12.1 app/helpers/push_type/admin_helper.rb
push_type_admin-0.12.0 app/helpers/push_type/admin_helper.rb
push_type_admin-0.12.0.beta.1 app/helpers/push_type/admin_helper.rb
push_type_admin-0.11.2 app/helpers/push_type/admin_helper.rb
push_type_admin-0.11.1 app/helpers/push_type/admin_helper.rb
push_type_admin-0.11.0.beta.2 app/helpers/push_type/admin_helper.rb
push_type_admin-0.11.0.beta.1 app/helpers/push_type/admin_helper.rb
push_type_admin-0.10.4 app/helpers/push_type/admin_helper.rb
push_type_admin-0.10.3 app/helpers/push_type/admin_helper.rb
push_type_admin-0.10.2 app/helpers/push_type/admin_helper.rb
push_type_admin-0.10.1 app/helpers/push_type/admin_helper.rb
push_type_admin-0.10.0 app/helpers/push_type/admin_helper.rb
push_type_admin-0.10.0.beta.5 app/helpers/push_type/admin_helper.rb
push_type_admin-0.10.0.beta.3 app/helpers/push_type/admin_helper.rb
push_type_admin-0.9.5 app/helpers/push_type/admin_helper.rb
push_type_admin-0.9.3 app/helpers/push_type/admin_helper.rb
push_type_admin-0.9.2 app/helpers/push_type/admin_helper.rb
push_type_admin-0.9.1 app/helpers/push_type/admin_helper.rb
push_type_admin-0.9.0 app/helpers/push_type/admin_helper.rb
push_type_admin-0.9.0.beta.4 app/helpers/push_type/admin_helper.rb