Module: Refinery::Helpers::PaginationHelper
- Defined in:
- lib/refinery/helpers/pagination_helper.rb
Instance Method Summary collapse
-
#pagination_css_class ⇒ Object
Figures out the CSS classname to apply to your pagination list for animations.
Instance Method Details
#pagination_css_class ⇒ Object
Figures out the CSS classname to apply to your pagination list for animations.
6 7 8 9 10 11 12 |
# File 'lib/refinery/helpers/pagination_helper.rb', line 6 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 |