Module: PushType::AdminHelper

Defined in:
app/helpers/push_type/admin_helper.rb

Instance Method Summary collapse

Instance Method Details

#ficon(kind, label = nil, opts = {}) ⇒ Object



8
9
10
11
12
# File 'app/helpers/push_type/admin_helper.rb', line 8

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

#title(page_title) ⇒ Object



4
5
6
# File 'app/helpers/push_type/admin_helper.rb', line 4

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