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-1.0.11 lib/refinery/helpers/pagination_helper.rb
refinerycms-core-1.0.10 lib/refinery/helpers/pagination_helper.rb
refinerycms-core-1.0.9 lib/refinery/helpers/pagination_helper.rb
refinerycms-core-1.0.8 lib/refinery/helpers/pagination_helper.rb
refinerycms-core-1.0.7 lib/refinery/helpers/pagination_helper.rb
refinerycms-core-1.0.5 lib/refinery/helpers/pagination_helper.rb
refinerycms-core-1.0.4 lib/refinery/helpers/pagination_helper.rb
refinerycms-core-1.0.3 lib/refinery/helpers/pagination_helper.rb
refinerycms-core-1.0.1 lib/refinery/helpers/pagination_helper.rb
refinerycms-core-1.0.0 lib/refinery/helpers/pagination_helper.rb
refinerycms-core-0.9.9.22 lib/refinery/helpers/pagination_helper.rb
refinerycms-core-0.9.9.21 lib/refinery/helpers/pagination_helper.rb
refinerycms-core-0.9.9.20 lib/refinery/helpers/pagination_helper.rb
refinerycms-core-0.9.9.19 lib/refinery/helpers/pagination_helper.rb
refinerycms-core-0.9.9.18 lib/refinery/helpers/pagination_helper.rb
refinerycms-core-0.9.9.17 lib/refinery/helpers/pagination_helper.rb
refinerycms-core-0.9.9.16 lib/refinery/helpers/pagination_helper.rb
refinerycms-core-0.9.9.15 lib/refinery/helpers/pagination_helper.rb
refinerycms-core-0.9.9.14 lib/refinery/helpers/pagination_helper.rb
refinerycms-core-0.9.9.13 lib/refinery/helpers/pagination_helper.rb