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.9.0.beta.3 app/helpers/push_type/admin_helper.rb
push_type_admin-0.9.0.beta.2 app/helpers/push_type/admin_helper.rb
push_type_admin-0.8.2 app/helpers/push_type/admin_helper.rb
push_type_admin-0.8.1 app/helpers/push_type/admin_helper.rb
push_type_admin-0.8.0 app/helpers/push_type/admin_helper.rb
push_type_admin-0.8.0.beta.3 app/helpers/push_type/admin_helper.rb
push_type_admin-0.8.0.beta.2 app/helpers/push_type/admin_helper.rb
push_type_admin-0.8.0.beta.1 app/helpers/push_type/admin_helper.rb
push_type_admin-0.7.0 app/helpers/push_type/admin_helper.rb
push_type_admin-0.7.0.beta.1 app/helpers/push_type/admin_helper.rb
push_type_admin-0.6.0 app/helpers/push_type/admin_helper.rb
push_type_admin-0.6.0.beta.4 app/helpers/push_type/admin_helper.rb
push_type_admin-0.6.0.beta.3 app/helpers/push_type/admin_helper.rb
push_type_admin-0.6.0.beta.2 app/helpers/push_type/admin_helper.rb
push_type_admin-0.6.0.beta.1 app/helpers/push_type/admin_helper.rb
push_type_admin-0.1.0.beta3 app/helpers/push_type/admin_helper.rb