Module: Refinery::PaginationHelper
- Defined in:
- app/helpers/refinery/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.
5 6 7 8 9 10 11 |
# File 'app/helpers/refinery/pagination_helper.rb', line 5 def pagination_css_class if request.xhr? and params[:from_page].present? "frame_#{params[:from_page] > (params[:page] ? params[:page] : "1") ? 'left' : 'right'}" else "frame_center" end end |