Sha256: 2f7e725ba365e440e15628945315d9c9a42793631b23f875ac38bded7a686c77

Contents?: true

Size: 801 Bytes

Versions: 16

Compression:

Stored size: 801 Bytes

Contents

module Admin::ImagesHelper

  def image_views
    RefinerySetting.find_or_set(:image_views, [:grid, :list])
  end

  def current_image_view
    RefinerySetting.find_or_set(:preferred_image_view, :list)
  end

  def change_list_mode_if_specified
    unless params[:action] != "index" or params[:view].blank? or !image_views.include? params[:view].to_sym
      RefinerySetting[:preferred_image_view] = params[:view]
    end
  end

  def images_paginator(collection, dialog = false)
    will_paginate collection, :previous_label => '« Previous',
                              :next_label => 'Next »',
                              :renderer => Refinery::LinkRenderer
                              #:params => {:controller => "admin/images", :action => "insert", :dialog => dialog }
  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
jacobat-refinerycms-0.9.6.14 vendor/plugins/images/app/helpers/admin/images_helper.rb
refinerycms-0.9.6.14 vendor/plugins/images/app/helpers/admin/images_helper.rb
refinerycms-0.9.6.13 vendor/plugins/images/app/helpers/admin/images_helper.rb
refinerycms-0.9.6.12 vendor/plugins/images/app/helpers/admin/images_helper.rb
refinerycms-0.9.6.11 vendor/plugins/images/app/helpers/admin/images_helper.rb
refinerycms-0.9.6.10 vendor/plugins/images/app/helpers/admin/images_helper.rb
refinerycms-0.9.6.9 vendor/plugins/images/app/helpers/admin/images_helper.rb
refinerycms-0.9.6.8 vendor/plugins/images/app/helpers/admin/images_helper.rb
refinerycms-0.9.6.7 vendor/plugins/images/app/helpers/admin/images_helper.rb
refinerycms-0.9.6.6 vendor/plugins/images/app/helpers/admin/images_helper.rb
refinerycms-0.9.6.5 vendor/plugins/images/app/helpers/admin/images_helper.rb
refinerycms-0.9.6.4 vendor/plugins/images/app/helpers/admin/images_helper.rb
refinerycms-0.9.6.3 vendor/plugins/images/app/helpers/admin/images_helper.rb
refinerycms-0.9.6.2 vendor/plugins/images/app/helpers/admin/images_helper.rb
refinerycms-0.9.6.1 vendor/plugins/images/app/helpers/admin/images_helper.rb
refinerycms-0.9.6 vendor/plugins/images/app/helpers/admin/images_helper.rb