Sha256: 1e207a1d9fa4b20374840bf8975975e29c395c29384b3cc1db50a168c5ef3fb9

Contents?: true

Size: 427 Bytes

Versions: 32

Compression:

Stored size: 427 Bytes

Contents

module Refinery
  module Helpers
    module PaginationHelper

      # Figures out the CSS classname to apply to your pagination list for animations.
      def pagination_css_class
        if request.xhr? and params[:from_page].present? and params[:page].present?
          "frame_#{params[:from_page].to_s > params[:page].to_s ? 'left' : 'right'}"
        else
          "frame_center"
        end
      end

    end
  end
end

Version data entries

32 entries across 32 versions & 2 rubygems

Version Path
refinerycms-core-0.9.9.12 lib/refinery/helpers/pagination_helper.rb
refinerycms-core-0.9.9.11 lib/refinery/helpers/pagination_helper.rb
refinerycms-core-0.9.9.10 lib/refinery/helpers/pagination_helper.rb
refinerycms-core-0.9.9.9 lib/refinery/helpers/pagination_helper.rb
refinerycms-core-0.9.9.8 lib/refinery/helpers/pagination_helper.rb
refinerycms-core-0.9.9.7 lib/refinery/helpers/pagination_helper.rb
refinerycms-core-0.9.9.5 lib/refinery/helpers/pagination_helper.rb
refinerycms-core-0.9.9.4 lib/refinery/helpers/pagination_helper.rb
refinerycms-core-0.9.9.3 lib/refinery/helpers/pagination_helper.rb
refinerycms-core-0.9.9.2 lib/refinery/helpers/pagination_helper.rb
refinerycms-core-0.9.9.1 lib/refinery/helpers/pagination_helper.rb
refinerycms-0.9.9 core/lib/refinery/helpers/pagination_helper.rb