Sha256: db7efb505c7f16284d9934ce362df6e8579bad52402fbcf4ddd0c7289474134e

Contents?: true

Size: 561 Bytes

Versions: 8

Compression:

Stored size: 561 Bytes

Contents

module Admin::BoxHelper

  def box_flash_message
    if not flash.empty?
      content_tag :div, flash.values.first,
        :id => "flash-#{flash.keys.first}",
        :class => 'application-message'
    else
      ''
    end
  end

  def box_button_tag(label)
    content_tag(:button, content_tag(:span, label), :type => 'submit', :class => 'button')
  end

  def next_installation_step_link(step = 1, label = nil)
    link_to(content_tag(:span, label || t('admin.installation.common.next')), admin_installation_step_url(step), :class => 'button')
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
locomotive_cms-1.0.0.beta.2 app/helpers/admin/box_helper.rb
locomotive_cms-1.0.0.beta app/helpers/admin/box_helper.rb
locomotive_cms-0.0.4.beta12 app/helpers/admin/box_helper.rb
locomotive_cms-0.0.4.beta11 app/helpers/admin/box_helper.rb
locomotive_cms-0.0.4.beta10 app/helpers/admin/box_helper.rb
locomotive_cms-0.0.4.beta9 app/helpers/admin/box_helper.rb
locomotive_cms-0.0.4.beta8 app/helpers/admin/box_helper.rb
locomotive_cms-0.0.4.beta7 app/helpers/admin/box_helper.rb