Module: Pageflow::InfoBoxHelper

Defined in:
app/helpers/pageflow/info_box_helper.rb

Instance Method Summary collapse

Instance Method Details

#info_box(configuration) ⇒ Object


3
4
5
6
7
8
9
10
11
# File 'app/helpers/pageflow/info_box_helper.rb', line 3

def info_box(configuration)
  if configuration['additional_title'].blank? && configuration['additional_description'].blank?
    css_class = 'add_info_box empty'
  else
    css_class = 'add_info_box'
  end

  render('pageflow/pages/info_box', :configuration => configuration, :css_class => css_class)
end

#info_box_title(title) ⇒ Object


13
14
15
16
17
# File 'app/helpers/pageflow/info_box_helper.rb', line 13

def info_box_title(title)
  if title.present?
    (:h3, title)
  end
end