Sha256: fc4b0ef6e6b782f68c3d0836bbd31c55f7745efbca74fa7d212c856f80d4e598

Contents?: true

Size: 412 Bytes

Versions: 2

Compression:

Stored size: 412 Bytes

Contents

Spree::BaseHelper.class_eval do
  def selected?(path)
    path == 'spree/admin/insights'
  end

  def form_action(insight, insight_type)
    insight ? admin_insight_path(id: @report_name, type: insight_type) : 'javascript:void(0)'
  end

  def page_selector_options
    [5, 10, 15, 30, 45, 60]
  end

  def pdf_logo(image_path = Spree::Config[:logo])
    wicked_pdf_image_tag image_path, class: 'logo'
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
solidus_admin_insights-2.1.1 app/helpers/spree/admin/base_helper_decorator.rb
solidus_admin_insights-2.1.0 app/helpers/spree/admin/base_helper_decorator.rb